Skip to content
Browse files

Add demo of reveal functionality

  • Loading branch information...
1 parent 1000281 commit d948ba97a18b867a70483005199005b50b667224 @mtrudel committed
View
8 ...leNavigationControllerDemo/MTStackableNavigationControllerDemo/MTCountingViewController.m
@@ -51,6 +51,14 @@ - (IBAction)pushIncrementedControllerWithPeek:(id)sender {
}
}
+- (IBAction)revealParentController:(id)sender {
+ [self.stackableNavigationController revealParentControllerAnimated:YES];
+}
+
+- (IBAction)stopReveal:(id)sender {
+ [self.stackableNavigationController endRevealAnimated:YES];
+}
+
#pragma mark - Notification messages for various events - use these to verify adherence to UINavigationController semantics
- (void)viewWillAppear:(BOOL)animated {
View
95 ...NavigationControllerDemo/MTStackableNavigationControllerDemo/MTCountingViewController.xib
@@ -72,7 +72,7 @@
<object class="IBUIButton" id="911066064">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{112, 230}, {96, 44}}</string>
+ <string key="NSFrame">{{112, 194}, {96, 44}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="252592098"/>
@@ -108,10 +108,10 @@
<object class="IBUIButton" id="252592098">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{74, 286}, {172, 44}}</string>
+ <string key="NSFrame">{{74, 245}, {172, 44}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
+ <reference key="NSNextKeyView" ref="114626499"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@@ -128,6 +128,51 @@
<reference key="IBUIFontDescription" ref="364933775"/>
<reference key="IBUIFont" ref="903269213"/>
</object>
+ <object class="IBUIButton" id="114626499">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{124, 296}, {73, 44}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="90584822"/>
+ <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">Reveal</string>
+ <reference key="IBUIHighlightedTitleColor" ref="414735083"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="648293919"/>
+ <reference key="IBUIFontDescription" ref="364933775"/>
+ <reference key="IBUIFont" ref="903269213"/>
+ </object>
+ <object class="IBUIButton" id="90584822">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{106, 347}, {110, 44}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <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">Stop Reveal</string>
+ <reference key="IBUIHighlightedTitleColor" ref="414735083"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="648293919"/>
+ <reference key="IBUIFontDescription" ref="364933775"/>
+ <reference key="IBUIFont" ref="903269213"/>
+ </object>
</array>
<string key="NSFrame">{{0, 20}, {320, 548}}</string>
<reference key="NSSuperview"/>
@@ -197,6 +242,24 @@
</object>
<int key="connectionID">41</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">revealParentController:</string>
+ <reference key="source" ref="114626499"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">47</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">stopReveal:</string>
+ <reference key="source" ref="90584822"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">46</int>
+ </object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -213,6 +276,8 @@
<reference ref="471686671"/>
<reference ref="911066064"/>
<reference ref="252592098"/>
+ <reference ref="114626499"/>
+ <reference ref="90584822"/>
</array>
<reference key="parent" ref="0"/>
</object>
@@ -243,6 +308,16 @@
<reference key="object" ref="252592098"/>
<reference key="parent" ref="191373211"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">42</int>
+ <reference key="object" ref="114626499"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">44</int>
+ <reference key="object" ref="90584822"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -254,12 +329,14 @@
<string key="16.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="23.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="42.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="44.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">41</int>
+ <int key="maxID">47</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -269,6 +346,8 @@
<dictionary class="NSMutableDictionary" key="actions">
<string key="pushIncrementedController:">id</string>
<string key="pushIncrementedControllerWithPeek:">id</string>
+ <string key="revealParentController:">id</string>
+ <string key="stopReveal:">id</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="actionInfosByName">
<object class="IBActionInfo" key="pushIncrementedController:">
@@ -279,6 +358,14 @@
<string key="name">pushIncrementedControllerWithPeek:</string>
<string key="candidateClassName">id</string>
</object>
+ <object class="IBActionInfo" key="revealParentController:">
+ <string key="name">revealParentController:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="stopReveal:">
+ <string key="name">stopReveal:</string>
+ <string key="candidateClassName">id</string>
+ </object>
</dictionary>
<object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">numberLabel</string>

0 comments on commit d948ba9

Please sign in to comment.
Something went wrong with that request. Please try again.