Skip to content

Commit

Permalink
Update demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
gcamp committed Feb 4, 2013
1 parent df88682 commit 05524ca
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 52 deletions.
4 changes: 2 additions & 2 deletions Demo/Classes/DemoAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ @implementation DemoAppDelegate
@synthesize window;
@synthesize viewController;

- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window addSubview:viewController.view];
- (void)applicationDidFinishLaunching:(UIApplication *)application {
window.rootViewController = viewController;
[window makeKeyAndVisible];
}

Expand Down
8 changes: 8 additions & 0 deletions Demo/Classes/DemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ - (BOOL) textFieldShouldReturn:(UITextField *)aTextField {
return NO;
}

- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}

- (BOOL)shouldAutorotate {
return YES;
}

- (void)dealloc {
[activitySwitch release];
activitySwitch = nil;
Expand Down
Binary file added Demo/Default-568h@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
132 changes: 83 additions & 49 deletions Demo/DemoViewController.xib
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1056</int>
<string key="IBDocument.SystemVersion">11A459e</string>
<string key="IBDocument.InterfaceBuilderVersion">1565</string>
<string key="IBDocument.AppKitVersion">1121.2</string>
<string key="IBDocument.HIToolboxVersion">557.00</string>
<int key="IBDocument.SystemTarget">1552</int>
<string key="IBDocument.SystemVersion">12C60</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">521</string>
<string key="NS.object.0">2083</string>
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>IBUITextField</string>
<string>IBProxyObject</string>
<string>IBUIButton</string>
<string>IBUILabel</string>
<string>IBUISwitch</string>
<string>IBUITextField</string>
<string>IBUIView</string>
<string>IBUILabel</string>
<string>IBProxyObject</string>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
</object>
<object class="NSMutableDictionary" key="IBDocument.Metadata">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys" id="0">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<reference key="dict.values" ref="0"/>
<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
<integer value="1" key="NS.object.0"/>
</object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand All @@ -47,7 +44,7 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBUIButton" id="572224162">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
<int key="NSvFlags">293</int>
<string key="NSFrame">{{20, 49}, {280, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
Expand All @@ -57,11 +54,6 @@
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<object class="NSFont" key="IBUIFont" id="861049644">
<string key="NSName">Helvetica-Bold</string>
<double key="NSSize">15</double>
<int key="NSfFlags">16</int>
</object>
<int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">Show</string>
<object class="NSColor" key="IBUIHighlightedTitleColor" id="449536147">
Expand All @@ -76,6 +68,17 @@
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC41AA</bytes>
</object>
<object class="IBUIFontDescription" key="IBUIFontDescription" id="248736518">
<string key="name">Helvetica-Bold</string>
<string key="family">Helvetica</string>
<int key="traits">2</int>
<double key="pointSize">15</double>
</object>
<object class="NSFont" key="IBUIFont" id="861049644">
<string key="NSName">Helvetica-Bold</string>
<double key="NSSize">15</double>
<int key="NSfFlags">16</int>
</object>
</object>
<object class="IBUISwitch" id="615865840">
<reference key="NSNextResponder" ref="774585933"/>
Expand Down Expand Up @@ -107,10 +110,20 @@
<object class="NSColor" key="IBUITextColor" id="891692999">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MCAwIDAAA</bytes>
<string key="IBUIColorCocoaTouchKeyPath">darkTextColor</string>
</object>
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">1</int>
<float key="IBUIMinimumFontSize">10</float>
<object class="IBUIFontDescription" key="IBUIFontDescription" id="353853578">
<int key="type">1</int>
<double key="pointSize">17</double>
</object>
<object class="NSFont" key="IBUIFont" id="210646233">
<string key="NSName">Helvetica</string>
<double key="NSSize">17</double>
<int key="NSfFlags">16</int>
</object>
</object>
<object class="IBUILabel" id="1036676565">
<reference key="NSNextResponder" ref="774585933"/>
Expand All @@ -128,6 +141,8 @@
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">1</int>
<float key="IBUIMinimumFontSize">10</float>
<reference key="IBUIFontDescription" ref="353853578"/>
<reference key="IBUIFont" ref="210646233"/>
</object>
<object class="IBUISwitch" id="120902040">
<reference key="NSNextResponder" ref="774585933"/>
Expand Down Expand Up @@ -160,6 +175,8 @@
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">1</int>
<float key="IBUIMinimumFontSize">10</float>
<reference key="IBUIFontDescription" ref="353853578"/>
<reference key="IBUIFont" ref="210646233"/>
</object>
<object class="IBUILabel" id="39845841">
<reference key="NSNextResponder" ref="774585933"/>
Expand All @@ -177,6 +194,8 @@
<nil key="IBUIHighlightedColor"/>
<int key="IBUIBaselineAdjustment">1</int>
<float key="IBUIMinimumFontSize">10</float>
<reference key="IBUIFontDescription" ref="353853578"/>
<reference key="IBUIFont" ref="210646233"/>
</object>
<object class="IBUITextField" id="210605887">
<reference key="NSNextResponder" ref="774585933"/>
Expand Down Expand Up @@ -207,10 +226,19 @@
<bool key="IBUIEnablesReturnKeyAutomatically">YES</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<int key="type">1</int>
<double key="pointSize">12</double>
</object>
<object class="NSFont" key="IBUIFont">
<string key="NSName">Helvetica</string>
<double key="NSSize">12</double>
<int key="NSfFlags">16</int>
</object>
</object>
<object class="IBUIButton" id="17923397">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
<int key="NSvFlags">293</int>
<string key="NSFrame">{{20, 94}, {280, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
Expand All @@ -220,7 +248,6 @@
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIFont" ref="861049644"/>
<int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">Hide</string>
<reference key="IBUIHighlightedTitleColor" ref="449536147"/>
Expand All @@ -229,10 +256,12 @@
<bytes key="NSRGB">MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA</bytes>
</object>
<reference key="IBUINormalTitleShadowColor" ref="529761312"/>
<reference key="IBUIFontDescription" ref="248736518"/>
<reference key="IBUIFont" ref="861049644"/>
</object>
<object class="IBUIButton" id="590720250">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">292</int>
<int key="NSvFlags">293</int>
<string key="NSFrame">{{20, 139}, {280, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<reference key="NSWindow"/>
Expand All @@ -242,7 +271,6 @@
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIFont" ref="861049644"/>
<int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">Hide After 1 sec</string>
<reference key="IBUIHighlightedTitleColor" ref="449536147"/>
Expand All @@ -251,6 +279,8 @@
<bytes key="NSRGB">MC4xOTYwNzg0MyAwLjMwOTgwMzkzIDAuNTIxNTY4NjYAA</bytes>
</object>
<reference key="IBUINormalTitleShadowColor" ref="529761312"/>
<reference key="IBUIFontDescription" ref="248736518"/>
<reference key="IBUIFont" ref="861049644"/>
</object>
</object>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
Expand Down Expand Up @@ -304,12 +334,12 @@
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">changeActivity:</string>
<reference key="source" ref="120902040"/>
<string key="label">show</string>
<reference key="source" ref="572224162"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">13</int>
<int key="IBEventType">7</int>
</object>
<int key="connectionID">20</int>
<int key="connectionID">23</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
Expand All @@ -322,12 +352,20 @@
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">show</string>
<reference key="source" ref="572224162"/>
<string key="label">changeActivity:</string>
<reference key="source" ref="120902040"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int>
<int key="IBEventType">13</int>
</object>
<int key="connectionID">23</int>
<int key="connectionID">20</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">delegate</string>
<reference key="source" ref="210605887"/>
<reference key="destination" ref="372490531"/>
</object>
<int key="connectionID">27</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
Expand All @@ -338,14 +376,6 @@
</object>
<int key="connectionID">26</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">delegate</string>
<reference key="source" ref="210605887"/>
<reference key="destination" ref="372490531"/>
</object>
<int key="connectionID">27</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">hideAfter1sec</string>
Expand All @@ -361,7 +391,9 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBObjectRecord">
<int key="objectID">0</int>
<reference key="object" ref="0"/>
<object class="NSArray" key="object" id="0">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
Expand Down Expand Up @@ -451,7 +483,9 @@
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>-1.CustomClassName</string>
<string>-1.IBPluginDependency</string>
<string>-2.CustomClassName</string>
<string>-2.IBPluginDependency</string>
<string>10.IBPluginDependency</string>
<string>11.IBPluginDependency</string>
<string>12.IBPluginDependency</string>
Expand All @@ -460,14 +494,14 @@
<string>15.IBPluginDependency</string>
<string>24.IBPluginDependency</string>
<string>29.IBPluginDependency</string>
<string>6.IBEditorWindowLastContentRect</string>
<string>6.IBPluginDependency</string>
<string>8.IBPluginDependency</string>
<string>9.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>DemoViewController</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>UIResponder</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
Expand All @@ -477,7 +511,7 @@
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>{{690, 355}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
Expand Down Expand Up @@ -513,7 +547,7 @@
<string>hideAfter1sec</string>
<string>show</string>
</object>
<object class="NSMutableArray" key="dict.values">
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
Expand All @@ -532,7 +566,7 @@
<string>hideAfter1sec</string>
<string>show</string>
</object>
<object class="NSMutableArray" key="dict.values">
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBActionInfo">
<string key="name">changeActivity:</string>
Expand Down Expand Up @@ -564,7 +598,7 @@
<string>textField</string>
<string>topBottomSwitch</string>
</object>
<object class="NSMutableArray" key="dict.values">
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>UISwitch</string>
<string>UITextField</string>
Expand All @@ -579,7 +613,7 @@
<string>textField</string>
<string>topBottomSwitch</string>
</object>
<object class="NSMutableArray" key="dict.values">
<object class="NSArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBToOneOutletInfo">
<string key="name">activitySwitch</string>
Expand Down Expand Up @@ -610,6 +644,6 @@
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
<string key="IBCocoaTouchPluginVersion">521</string>
<string key="IBCocoaTouchPluginVersion">2083</string>
</data>
</archive>
Loading

0 comments on commit 05524ca

Please sign in to comment.