Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some more features to FeaturesExample.

  • Loading branch information...
commit 65996e4a30531375c81bd16f07d0300532229b1c 1 parent f59d7a5
@Inferis authored
View
3  FeaturesExample/ChoiceController.h
@@ -13,5 +13,8 @@
- (IBAction)panningChanged:(id)sender;
- (IBAction)centerHiddenChanged:(id)sender;
- (IBAction)navigationChanged:(id)sender;
+- (IBAction)rotationChanged:(id)sender;
+- (IBAction)elasticChanged:(id)sender;
+- (IBAction)maxLedgeChanged:(id)sender;
@end
View
25 FeaturesExample/ChoiceController.m
@@ -10,6 +10,9 @@ @interface ChoiceController () {
IIViewDeckPanningMode _panning;
IIViewDeckCenterHiddenInteractivity _centerHidden;
IIViewDeckNavigationControllerBehavior _navBehavior;
+ IIViewDeckRotationBehavior _rotBehavior;
+ BOOL _elastic;
+ CGFloat _maxLedge;
}
@end
@@ -25,6 +28,9 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
_panning = IIViewDeckNoPanning;
_centerHidden = IIViewDeckCenterHiddenUserInteractive;
_navBehavior = IIViewDeckNavigationControllerContained;
+ _rotBehavior = IIViewDeckRotationKeepsLedgeSizes;
+ _elastic = YES;
+ _maxLedge = 0;
}
return self;
}
@@ -67,6 +73,9 @@ - (IBAction)pressedNavigate:(id)sender {
controller.centerhiddenInteractivity = _centerHidden;
controller.navigationControllerBehavior = _navBehavior;
controller.panningView = self.panningView;
+ controller.maxLedge = _maxLedge > 0 ? self.view.bounds.size.width-_maxLedge : 0;
+ controller.rotationBehavior = _rotBehavior;
+ controller.elastic = _elastic;
[self.navigationController pushViewController:controller animated:YES];
}
@@ -91,4 +100,20 @@ - (IBAction)navigationChanged:(id)sender {
_navBehavior = values[control.selectedSegmentIndex];
}
+- (IBAction)rotationChanged:(id)sender {
+ UISegmentedControl* control = (UISegmentedControl*)sender;
+
+ IIViewDeckRotationBehavior values[] = { IIViewDeckRotationKeepsLedgeSizes, IIViewDeckRotationKeepsViewSizes };
+ _rotBehavior = values[control.selectedSegmentIndex];
+}
+
+- (IBAction)elasticChanged:(id)sender {
+ _elastic = ((UISwitch*)sender).on;
+}
+
+- (IBAction)maxLedgeChanged:(id)sender {
+ _maxLedge = ((UISlider*)sender).value;
+}
+
+
@end
View
345 FeaturesExample/ChoiceController.xib
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
<data>
- <int key="IBDocument.SystemTarget">1280</int>
- <string key="IBDocument.SystemVersion">11C74</string>
- <string key="IBDocument.InterfaceBuilderVersion">1938</string>
- <string key="IBDocument.AppKitVersion">1138.23</string>
- <string key="IBDocument.HIToolboxVersion">567.00</string>
+ <int key="IBDocument.SystemTarget">1296</int>
+ <string key="IBDocument.SystemVersion">11D50b</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
+ <string key="IBDocument.AppKitVersion">1138.32</string>
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">933</string>
+ <string key="NS.object.0">1181</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
- <string>IBUIButton</string>
- <string>IBUISegmentedControl</string>
<string>IBUIView</string>
- <string>IBUILabel</string>
<string>IBProxyObject</string>
+ <string>IBUILabel</string>
+ <string>IBUISwitch</string>
+ <string>IBUISegmentedControl</string>
+ <string>IBUISlider</string>
+ <string>IBUIButton</string>
</array>
<array key="IBDocument.PluginDependencies">
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
@@ -39,9 +41,10 @@
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIButton" id="51994244">
<reference key="NSNextResponder" ref="766721923"/>
- <int key="NSvFlags">292</int>
- <string key="NSFrame">{{67, 479}, {883, 89}}</string>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrame">{{67, 514}, {883, 89}}</string>
<reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:241</string>
<bool key="IBUIOpaque">NO</bool>
@@ -54,7 +57,7 @@
<bytes key="NSRGB">MC4zMzMzMzMzMzMzIDAuMzMzMzMzMzMzMyAwLjMzMzMzMzMzMzMAA</bytes>
</object>
<string key="IBUINormalTitle">Navigate</string>
- <object class="NSColor" key="IBUIHighlightedTitleColor">
+ <object class="NSColor" key="IBUIHighlightedTitleColor" id="602839408">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
@@ -79,8 +82,9 @@
<object class="IBUILabel" id="298622049">
<reference key="NSNextResponder" ref="766721923"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{67, 385}, {233, 21}}</string>
+ <string key="NSFrame">{{67, 196}, {233, 21}}</string>
<reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="424282990"/>
<string key="NSReuseIdentifierKey">_NS:345</string>
<bool key="IBUIOpaque">NO</bool>
@@ -89,11 +93,12 @@
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<string key="IBUIText">Navigation Controller Behavior</string>
- <object class="NSColor" key="IBUITextColor" id="1046480599">
- <int key="NSColorSpace">1</int>
- <bytes key="NSRGB">MCAwIDAAA</bytes>
- </object>
+ <reference key="IBUITextColor" ref="602839408"/>
<nil key="IBUIHighlightedColor"/>
+ <object class="NSColor" key="IBUIShadowColor" id="1005145171">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
<int key="IBUIBaselineAdjustment">1</int>
<float key="IBUIMinimumFontSize">10</float>
<object class="IBUIFontDescription" key="IBUIFontDescription" id="1071834993">
@@ -108,10 +113,11 @@
</object>
<object class="IBUISegmentedControl" id="424282990">
<reference key="NSNextResponder" ref="766721923"/>
- <int key="NSvFlags">292</int>
- <string key="NSFrame">{{381, 382}, {569, 30}}</string>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrame">{{67, 225}, {883, 30}}</string>
<reference key="NSSuperview" ref="766721923"/>
- <reference key="NSNextKeyView" ref="51994244"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="580488722"/>
<string key="NSReuseIdentifierKey">_NS:289</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
@@ -139,11 +145,113 @@
<reference ref="4"/>
</array>
</object>
+ <object class="IBUILabel" id="580488722">
+ <reference key="NSNextResponder" ref="766721923"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{67, 277}, {233, 21}}</string>
+ <reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="625845618"/>
+ <string key="NSReuseIdentifierKey">_NS:345</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <string key="IBUIText">Rotation Behavior</string>
+ <reference key="IBUITextColor" ref="602839408"/>
+ <nil key="IBUIHighlightedColor"/>
+ <reference key="IBUIShadowColor" ref="1005145171"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <reference key="IBUIFontDescription" ref="1071834993"/>
+ <reference key="IBUIFont" ref="148922887"/>
+ </object>
+ <object class="IBUISegmentedControl" id="625845618">
+ <reference key="NSNextResponder" ref="766721923"/>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrame">{{67, 307}, {883, 30}}</string>
+ <reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="152556116"/>
+ <string key="NSReuseIdentifierKey">_NS:289</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <int key="IBSegmentControlStyle">2</int>
+ <int key="IBNumberOfSegments">2</int>
+ <int key="IBSelectedSegmentIndex">0</int>
+ <array key="IBSegmentTitles">
+ <string>Keeps Ledge Sizes</string>
+ <string>Keeps View Sizes</string>
+ </array>
+ <array class="NSMutableArray" key="IBSegmentWidths">
+ <real value="0.0"/>
+ <real value="0.0"/>
+ </array>
+ <array class="NSMutableArray" key="IBSegmentEnabledStates">
+ <boolean value="YES"/>
+ <boolean value="YES"/>
+ </array>
+ <array class="NSMutableArray" key="IBSegmentContentOffsets">
+ <string>{0, 0}</string>
+ <string>{0, 0}</string>
+ </array>
+ <array class="NSMutableArray" key="IBSegmentImages">
+ <reference ref="4"/>
+ <reference ref="4"/>
+ </array>
+ </object>
+ <object class="IBUILabel" id="995111890">
+ <reference key="NSNextResponder" ref="766721923"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{67, 371}, {82, 21}}</string>
+ <reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="841202955"/>
+ <string key="NSReuseIdentifierKey">_NS:345</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <string key="IBUIText">Elastic</string>
+ <reference key="IBUITextColor" ref="602839408"/>
+ <nil key="IBUIHighlightedColor"/>
+ <reference key="IBUIShadowColor" ref="1005145171"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <reference key="IBUIFontDescription" ref="1071834993"/>
+ <reference key="IBUIFont" ref="148922887"/>
+ </object>
+ <object class="IBUILabel" id="841202955">
+ <reference key="NSNextResponder" ref="766721923"/>
+ <int key="NSvFlags">289</int>
+ <string key="NSFrame">{{527, 371}, {82, 21}}</string>
+ <reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="900015110"/>
+ <string key="NSReuseIdentifierKey">_NS:345</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <string key="IBUIText">Max Ledge</string>
+ <reference key="IBUITextColor" ref="602839408"/>
+ <nil key="IBUIHighlightedColor"/>
+ <reference key="IBUIShadowColor" ref="1005145171"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ <int key="IBUITextAlignment">2</int>
+ <reference key="IBUIFontDescription" ref="1071834993"/>
+ <reference key="IBUIFont" ref="148922887"/>
+ </object>
<object class="IBUILabel" id="360261759">
<reference key="NSNextResponder" ref="766721923"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{67, 327}, {276, 21}}</string>
+ <string key="NSFrame">{{67, 110}, {276, 21}}</string>
<reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="622807732"/>
<string key="NSReuseIdentifierKey">_NS:345</string>
<bool key="IBUIOpaque">NO</bool>
@@ -152,8 +260,9 @@
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<string key="IBUIText">Center View Hidden Interactivity</string>
- <reference key="IBUITextColor" ref="1046480599"/>
+ <reference key="IBUITextColor" ref="602839408"/>
<nil key="IBUIHighlightedColor"/>
+ <reference key="IBUIShadowColor" ref="1005145171"/>
<int key="IBUIBaselineAdjustment">1</int>
<float key="IBUIMinimumFontSize">10</float>
<reference key="IBUIFontDescription" ref="1071834993"/>
@@ -161,9 +270,10 @@
</object>
<object class="IBUISegmentedControl" id="622807732">
<reference key="NSNextResponder" ref="766721923"/>
- <int key="NSvFlags">292</int>
- <string key="NSFrame">{{381, 325}, {569, 30}}</string>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrame">{{67, 139}, {883, 30}}</string>
<reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="298622049"/>
<string key="NSReuseIdentifierKey">_NS:289</string>
<bool key="IBUIOpaque">NO</bool>
@@ -205,8 +315,9 @@
<object class="IBUILabel" id="632600892">
<reference key="NSNextResponder" ref="766721923"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{67, 271}, {233, 21}}</string>
+ <string key="NSFrame">{{67, 28}, {233, 21}}</string>
<reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="959617074"/>
<string key="NSReuseIdentifierKey">_NS:345</string>
<bool key="IBUIOpaque">NO</bool>
@@ -215,8 +326,9 @@
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<string key="IBUIText">Panning</string>
- <reference key="IBUITextColor" ref="1046480599"/>
+ <reference key="IBUITextColor" ref="602839408"/>
<nil key="IBUIHighlightedColor"/>
+ <reference key="IBUIShadowColor" ref="1005145171"/>
<int key="IBUIBaselineAdjustment">1</int>
<float key="IBUIMinimumFontSize">10</float>
<reference key="IBUIFontDescription" ref="1071834993"/>
@@ -224,9 +336,10 @@
</object>
<object class="IBUISegmentedControl" id="959617074">
<reference key="NSNextResponder" ref="766721923"/>
- <int key="NSvFlags">292</int>
- <string key="NSFrame">{{381, 268}, {569, 30}}</string>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrame">{{67, 57}, {883, 30}}</string>
<reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="360261759"/>
<string key="NSReuseIdentifierKey">_NS:289</string>
<bool key="IBUIOpaque">NO</bool>
@@ -265,9 +378,38 @@
<reference ref="4"/>
</array>
</object>
+ <object class="IBUISwitch" id="152556116">
+ <reference key="NSNextResponder" ref="766721923"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{116, 367}, {94, 27}}</string>
+ <reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="995111890"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <bool key="IBUIOn">YES</bool>
+ </object>
+ <object class="IBUISlider" id="900015110">
+ <reference key="NSNextResponder" ref="766721923"/>
+ <int key="NSvFlags">289</int>
+ <string key="NSFrame">{{632, 370}, {320, 23}}</string>
+ <reference key="NSSuperview" ref="766721923"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="51994244"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <float key="IBUIMaxValue">320</float>
+ </object>
</array>
<string key="NSFrame">{{0, 64}, {1024, 660}}</string>
<reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="632600892"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
@@ -334,6 +476,42 @@
</object>
<int key="connectionID">23</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">navigationChanged:</string>
+ <reference key="source" ref="625845618"/>
+ <reference key="destination" ref="841351856"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">35</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">rotationChanged:</string>
+ <reference key="source" ref="625845618"/>
+ <reference key="destination" ref="841351856"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">42</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">elasticChanged:</string>
+ <reference key="source" ref="152556116"/>
+ <reference key="destination" ref="841351856"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">44</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">maxLedgeChanged:</string>
+ <reference key="source" ref="900015110"/>
+ <reference key="destination" ref="841351856"/>
+ <int key="IBEventType">13</int>
+ </object>
+ <int key="connectionID">43</int>
+ </object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -358,13 +536,19 @@
<int key="objectID">2</int>
<reference key="object" ref="766721923"/>
<array class="NSMutableArray" key="children">
- <reference ref="424282990"/>
+ <reference ref="632600892"/>
+ <reference ref="959617074"/>
<reference ref="51994244"/>
+ <reference ref="360261759"/>
<reference ref="622807732"/>
- <reference ref="959617074"/>
<reference ref="298622049"/>
- <reference ref="360261759"/>
- <reference ref="632600892"/>
+ <reference ref="424282990"/>
+ <reference ref="580488722"/>
+ <reference ref="625845618"/>
+ <reference ref="841202955"/>
+ <reference ref="900015110"/>
+ <reference ref="995111890"/>
+ <reference ref="152556116"/>
</array>
<reference key="parent" ref="0"/>
</object>
@@ -403,6 +587,36 @@
<reference key="object" ref="632600892"/>
<reference key="parent" ref="766721923"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">33</int>
+ <reference key="object" ref="580488722"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">34</int>
+ <reference key="object" ref="625845618"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">36</int>
+ <reference key="object" ref="995111890"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">39</int>
+ <reference key="object" ref="152556116"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">40</int>
+ <reference key="object" ref="900015110"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">41</int>
+ <reference key="object" ref="841202955"/>
+ <reference key="parent" ref="766721923"/>
+ </object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -420,19 +634,80 @@
<string key="20.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="21.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<integer value="3" key="21.IUISegmentedControlInspectorSelectedSegmentMetadataKey"/>
+ <string key="33.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="34.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <integer value="0" key="34.IUISegmentedControlInspectorSelectedSegmentMetadataKey"/>
+ <string key="36.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="39.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="40.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="41.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="5.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">32</int>
+ <int key="maxID">44</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">ChoiceController</string>
+ <string key="superclassName">UIViewController</string>
+ <dictionary class="NSMutableDictionary" key="actions">
+ <string key="centerHiddenChanged:">id</string>
+ <string key="elasticChanged:">id</string>
+ <string key="maxLedgeChanged:">id</string>
+ <string key="navigationChanged:">id</string>
+ <string key="panningChanged:">id</string>
+ <string key="pressedNavigate:">id</string>
+ <string key="rotationChanged:">id</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="actionInfosByName">
+ <object class="IBActionInfo" key="centerHiddenChanged:">
+ <string key="name">centerHiddenChanged:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="elasticChanged:">
+ <string key="name">elasticChanged:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="maxLedgeChanged:">
+ <string key="name">maxLedgeChanged:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="navigationChanged:">
+ <string key="name">navigationChanged:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="panningChanged:">
+ <string key="name">panningChanged:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="pressedNavigate:">
+ <string key="name">pressedNavigate:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="rotationChanged:">
+ <string key="name">rotationChanged:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </dictionary>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/ChoiceController.h</string>
+ </object>
+ </object>
+ </array>
</object>
- <object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <real value="1296" key="NS.object.0"/>
+ </object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">933</string>
+ <string key="IBCocoaTouchPluginVersion">1181</string>
</data>
</archive>
View
15 FeaturesExample/PathlikeSliderController.m
@@ -63,21 +63,6 @@ - (void)viewWillAppear:(BOOL)animated {
}
-- (void)viewDidUnload
-{
- [super viewDidUnload];
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
-{
- // Return YES for supported orientations
- return YES;
-}
-
-- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
-}
@end
View
8 FeaturesExample/PhotosController.m
@@ -25,6 +25,14 @@ - (void)didReceiveMemoryWarning
// Release any cached data, images, etc that aren't in use.
}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ // Return YES for supported orientations
+ return YES; // UIInterfaceOrientationIsLandscape(interfaceOrientation);
+}
+
+
#pragma mark - View lifecycle
- (void)viewDidLoad
View
2  FeaturesExample/RootViewController.m
@@ -43,6 +43,7 @@ - (void)viewDidLoad
self.navController = [[UINavigationController alloc] initWithRootViewController:choiceController];
self.navController.navigationBar.tintColor = [UIColor darkGrayColor];
+ [self addChildViewController:self.navController];
self.navController.view.frame = self.choiceView.bounds;
[self.choiceView addSubview:self.navController.view];
@@ -61,4 +62,5 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
return YES;
}
+
@end
View
25 FeaturesExample/RootViewController.xib
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
<data>
- <int key="IBDocument.SystemTarget">1280</int>
- <string key="IBDocument.SystemVersion">11C74</string>
- <string key="IBDocument.InterfaceBuilderVersion">1938</string>
- <string key="IBDocument.AppKitVersion">1138.23</string>
- <string key="IBDocument.HIToolboxVersion">567.00</string>
+ <int key="IBDocument.SystemTarget">1296</int>
+ <string key="IBDocument.SystemVersion">11D50b</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
+ <string key="IBDocument.AppKitVersion">1138.32</string>
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">933</string>
+ <string key="NS.object.0">1181</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
@@ -51,19 +51,18 @@
</object>
<object class="IBUIView" id="254553965">
<reference key="NSNextResponder" ref="766721923"/>
- <int key="NSvFlags">264</int>
+ <int key="NSvFlags">266</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUIView" id="132293882">
<reference key="NSNextResponder" ref="254553965"/>
- <int key="NSvFlags">292</int>
+ <int key="NSvFlags">274</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="IBUILabel" id="693574954">
<reference key="NSNextResponder" ref="132293882"/>
- <int key="NSvFlags">292</int>
+ <int key="NSvFlags">274</int>
<string key="NSFrame">{{19, 0}, {473, 33}}</string>
<reference key="NSSuperview" ref="132293882"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:345</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
@@ -269,8 +268,12 @@
</object>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <real value="1296" key="NS.object.0"/>
+ </object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">933</string>
+ <string key="IBCocoaTouchPluginVersion">1181</string>
</data>
</archive>
Please sign in to comment.
Something went wrong with that request. Please try again.