Permalink
Browse files

Adding the Graphics & Animation code from Evolve 2013.

  • Loading branch information...
topgenorth committed Jan 9, 2014
1 parent 98398c2 commit f88b24e944a7c9b1e16e41f9031f4a5ea6cba70c
Showing with 2,182 additions and 0 deletions.
  1. +133 −0 EvolveGraphicsAndAnimation/AnimationSamples/AnimationSamples.csproj
  2. +59 −0 EvolveGraphicsAndAnimation/AnimationSamples/AnimationSamplesViewController.cs
  3. +25 −0 EvolveGraphicsAndAnimation/AnimationSamples/AnimationSamplesViewController.designer.cs
  4. +176 −0 EvolveGraphicsAndAnimation/AnimationSamples/AnimationSamplesViewController.xib
  5. +39 −0 EvolveGraphicsAndAnimation/AnimationSamples/AppDelegate.cs
  6. +51 −0 EvolveGraphicsAndAnimation/AnimationSamples/DemoViewTransition.cs
  7. +18 −0 EvolveGraphicsAndAnimation/AnimationSamples/DemoViewTransition.designer.cs
  8. +118 −0 EvolveGraphicsAndAnimation/AnimationSamples/DemoViewTransition.xib
  9. +64 −0 EvolveGraphicsAndAnimation/AnimationSamples/ExplicitLayerAnimation.cs
  10. +18 −0 EvolveGraphicsAndAnimation/AnimationSamples/ExplicitLayerAnimation.designer.cs
  11. +118 −0 EvolveGraphicsAndAnimation/AnimationSamples/ExplicitLayerAnimation.xib
  12. +47 −0 EvolveGraphicsAndAnimation/AnimationSamples/ImplicitLayerAnimation.cs
  13. +18 −0 EvolveGraphicsAndAnimation/AnimationSamples/ImplicitLayerAnimation.designer.cs
  14. +118 −0 EvolveGraphicsAndAnimation/AnimationSamples/ImplicitLayerAnimation.xib
  15. +12 −0 EvolveGraphicsAndAnimation/AnimationSamples/Info.plist
  16. +20 −0 EvolveGraphicsAndAnimation/AnimationSamples/Main.cs
  17. BIN EvolveGraphicsAndAnimation/AnimationSamples/Resources/Default-568h@2x.png
  18. +32 −0 EvolveGraphicsAndAnimation/AnimationSamples/SecondViewController.cs
  19. +18 −0 EvolveGraphicsAndAnimation/AnimationSamples/SecondViewController.designer.cs
  20. +162 −0 EvolveGraphicsAndAnimation/AnimationSamples/SecondViewController.xib
  21. +46 −0 EvolveGraphicsAndAnimation/AnimationSamples/ViewAnimation.cs
  22. +18 −0 EvolveGraphicsAndAnimation/AnimationSamples/ViewAnimation.designer.cs
  23. +118 −0 EvolveGraphicsAndAnimation/AnimationSamples/ViewAnimation.xib
  24. BIN EvolveGraphicsAndAnimation/AnimationSamples/monkey1.png
  25. BIN EvolveGraphicsAndAnimation/AnimationSamples/monkey2.png
  26. BIN EvolveGraphicsAndAnimation/AnimationSamples/monkey3.png
  27. 0 EvolveGraphicsAndAnimation/AnimationSamples/readme.md
  28. +38 −0 EvolveGraphicsAndAnimation/CoreGraphicsSamples/AppDelegate.cs
  29. +89 −0 EvolveGraphicsAndAnimation/CoreGraphicsSamples/CoreGraphicsSamples.csproj
  30. +32 −0 EvolveGraphicsAndAnimation/CoreGraphicsSamples/CoreGraphicsSamplesViewController.cs
  31. BIN EvolveGraphicsAndAnimation/CoreGraphicsSamples/Default-568h@2x.png
  32. +39 −0 EvolveGraphicsAndAnimation/CoreGraphicsSamples/DrawnImageView.cs
  33. +12 −0 EvolveGraphicsAndAnimation/CoreGraphicsSamples/Info.plist
  34. +19 −0 EvolveGraphicsAndAnimation/CoreGraphicsSamples/Main.cs
  35. BIN EvolveGraphicsAndAnimation/CoreGraphicsSamples/MyImage.png
  36. +62 −0 EvolveGraphicsAndAnimation/CoreGraphicsSamples/PDFView.cs
  37. +67 −0 EvolveGraphicsAndAnimation/CoreGraphicsSamples/TriangleView.cs
  38. BIN EvolveGraphicsAndAnimation/CoreGraphicsSamples/file.pdf
  39. +60 −0 EvolveGraphicsAndAnimation/GraphicsAndAnimation.sln
  40. +39 −0 EvolveGraphicsAndAnimation/GraphicsDemo/AppDelegate.cs
  41. +105 −0 EvolveGraphicsAndAnimation/GraphicsDemo/DemoView.cs
  42. +114 −0 EvolveGraphicsAndAnimation/GraphicsDemo/GraphicsDemo.csproj
  43. +31 −0 EvolveGraphicsAndAnimation/GraphicsDemo/GraphicsDemoViewController.cs
  44. +23 −0 EvolveGraphicsAndAnimation/GraphicsDemo/Info.plist
  45. +20 −0 EvolveGraphicsAndAnimation/GraphicsDemo/Main.cs
  46. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Default-568h@2x.png
  47. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Default.png
  48. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Default@2x.png
  49. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Icon-72.png
  50. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Icon-Small-50.png
  51. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Icon-Small.png
  52. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Icon-Small@2x.png
  53. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Icon.png
  54. BIN EvolveGraphicsAndAnimation/GraphicsDemo/Resources/Icon@2x.png
  55. BIN EvolveGraphicsAndAnimation/GraphicsDemo/monkey.png
  56. +4 −0 EvolveGraphicsAndAnimation/readme.md
@@ -0,0 +1,133 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
+ <ProductVersion>10.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{63FF85F6-616D-4746-9AE7-CD9070CA4CF9}</ProjectGuid>
+ <ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>AnimationSamples</RootNamespace>
+ <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
+ <AssemblyName>AnimationSamples</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
+ <DebugSymbols>True</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>False</Optimize>
+ <OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>False</ConsolePause>
+ <MtouchLink>None</MtouchLink>
+ <MtouchDebug>True</MtouchDebug>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
+ <DebugType>none</DebugType>
+ <Optimize>True</Optimize>
+ <OutputPath>bin\iPhoneSimulator\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>False</ConsolePause>
+ <MtouchLink>None</MtouchLink>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
+ <DebugSymbols>True</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>False</Optimize>
+ <OutputPath>bin\iPhone\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>False</ConsolePause>
+ <MtouchDebug>True</MtouchDebug>
+ <CodesignKey>iPhone Developer</CodesignKey>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
+ <DebugType>none</DebugType>
+ <Optimize>True</Optimize>
+ <OutputPath>bin\iPhone\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>False</ConsolePause>
+ <CodesignKey>iPhone Developer</CodesignKey>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
+ <DebugType>none</DebugType>
+ <Optimize>True</Optimize>
+ <OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <BuildIpa>True</BuildIpa>
+ <ConsolePause>False</ConsolePause>
+ <CodesignProvision>Automatic:AdHoc</CodesignProvision>
+ <CodesignKey>iPhone Distribution</CodesignKey>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
+ <DebugType>none</DebugType>
+ <Optimize>True</Optimize>
+ <OutputPath>bin\iPhone\AppStore</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>False</ConsolePause>
+ <CodesignKey>iPhone Distribution</CodesignKey>
+ <CodesignProvision>Automatic:AppStore</CodesignProvision>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="monotouch" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Resources\" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Info.plist" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Main.cs" />
+ <Compile Include="AppDelegate.cs" />
+ <Compile Include="AnimationSamplesViewController.cs" />
+ <Compile Include="AnimationSamplesViewController.designer.cs">
+ <DependentUpon>AnimationSamplesViewController.cs</DependentUpon>
+ </Compile>
+ <Compile Include="SecondViewController.cs" />
+ <Compile Include="SecondViewController.designer.cs">
+ <DependentUpon>SecondViewController.cs</DependentUpon>
+ </Compile>
+ <Compile Include="DemoViewTransition.cs" />
+ <Compile Include="DemoViewTransition.designer.cs">
+ <DependentUpon>DemoViewTransition.cs</DependentUpon>
+ </Compile>
+ <Compile Include="ViewAnimation.cs" />
+ <Compile Include="ViewAnimation.designer.cs">
+ <DependentUpon>ViewAnimation.cs</DependentUpon>
+ </Compile>
+ <Compile Include="ImplicitLayerAnimation.cs" />
+ <Compile Include="ImplicitLayerAnimation.designer.cs">
+ <DependentUpon>ImplicitLayerAnimation.cs</DependentUpon>
+ </Compile>
+ <Compile Include="ExplicitLayerAnimation.cs" />
+ <Compile Include="ExplicitLayerAnimation.designer.cs">
+ <DependentUpon>ExplicitLayerAnimation.cs</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <InterfaceDefinition Include="AnimationSamplesViewController.xib" />
+ <InterfaceDefinition Include="SecondViewController.xib" />
+ <InterfaceDefinition Include="DemoViewTransition.xib" />
+ <InterfaceDefinition Include="ViewAnimation.xib" />
+ <InterfaceDefinition Include="ImplicitLayerAnimation.xib" />
+ <InterfaceDefinition Include="ExplicitLayerAnimation.xib" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <ItemGroup>
+ <BundleResource Include="Resources\Default-568h%402x.png" />
+ <BundleResource Include="monkey1.png" />
+ <BundleResource Include="monkey2.png" />
+ <BundleResource Include="monkey3.png" />
+ </ItemGroup>
+</Project>
@@ -0,0 +1,59 @@
+using System;
+using System.Drawing;
+
+using MonoTouch.Foundation;
+using MonoTouch.UIKit;
+
+namespace AnimationSamples
+{
+ public partial class AnimationSamplesViewController : UIViewController
+ {
+ public AnimationSamplesViewController () : base ("AnimationSamplesViewController", null)
+ {
+ }
+
+ public override void ViewDidLoad ()
+ {
+ base.ViewDidLoad ();
+
+ TransitionButton.TouchUpInside += (object sender, EventArgs e) => {
+
+ #region demo animated controller transition
+ SecondViewController vc2 = new SecondViewController {
+ ModalTransitionStyle = UIModalTransitionStyle.PartialCurl
+ };
+
+ PresentViewController (vc2, true, null);
+ #endregion
+
+ #region demo view transition
+// DemoViewTransition vc3 = new DemoViewTransition();
+//
+// PresentViewController (vc3, true, null);
+ #endregion
+
+ #region demo view animation
+// ViewAnimation vc4 = new ViewAnimation();
+//
+// PresentViewController (vc4, true, null);
+ #endregion
+
+ #region demo implecit layer animation
+// var vc5 = new ImplicitLayerAnimation();
+//
+// PresentViewController (vc5, true, null);
+ #endregion
+
+ #region demo explicit layer animation
+// var vc6 = new ExplicitLayerAnimation();
+//
+// PresentViewController (vc6, true, null);
+ #endregion
+ };
+ }
+
+
+
+ }
+}
+

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,176 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1552</int>
+ <string key="IBDocument.SystemVersion">12C3012</string>
+ <string key="IBDocument.InterfaceBuilderVersion">3084</string>
+ <string key="IBDocument.AppKitVersion">1187.34</string>
+ <string key="IBDocument.HIToolboxVersion">625.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">2083</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUIButton</string>
+ <string>IBUIView</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="843779117">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="774585933">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUIButton" id="655764771">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{36, 208}, {250, 44}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Transition to Second Controller</string>
+ <object class="NSColor" key="IBUIHighlightedTitleColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">2</int>
+ <double key="pointSize">15</double>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">15</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="655764771"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC43NQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="774585933"/>
+ </object>
+ <int key="connectionID">7</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">TransitionButton</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="655764771"/>
+ </object>
+ <int key="connectionID">9</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="843779117"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="774585933"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="655764771"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="655764771"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">AnimationSamplesViewController</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">9</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">AnimationSamplesViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/AnimationSamplesViewController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">2083</string>
+ </data>
+</archive>
Oops, something went wrong.

0 comments on commit f88b24e

Please sign in to comment.