Skip to content
This repository
Browse code

FIRST

  • Loading branch information...
commit d993f0fd5a2559a3012259cb460acd9cb0de06d4 0 parents
Mike Enriquez authored

Showing 23 changed files with 1,141 additions and 0 deletions. Show diff stats Hide diff stats

  1. 17  .gitignore
  2. 334  ECSlidingViewController.xcodeproj/project.pbxproj
  3. 16  ECSlidingViewController/AppDelegate.h
  4. 67  ECSlidingViewController/AppDelegate.m
  5. 43  ECSlidingViewController/ECSlidingViewController-Info.plist
  6. 14  ECSlidingViewController/ECSlidingViewController-Prefix.pch
  7. 17  ECSlidingViewController/FirstTopViewController.h
  8. 29  ECSlidingViewController/FirstTopViewController.m
  9. 13  ECSlidingViewController/MenuViewController.h
  10. 46  ECSlidingViewController/MenuViewController.m
  11. 13  ECSlidingViewController/SecondTopViewController.h
  12. 13  ECSlidingViewController/SecondTopViewController.m
  13. 158  ECSlidingViewController/Storyboard.storyboard
  14. 13  ECSlidingViewController/ThirdTopViewController.h
  15. 13  ECSlidingViewController/ThirdTopViewController.m
  16. 13  ECSlidingViewController/UnderRightViewController.h
  17. 13  ECSlidingViewController/UnderRightViewController.m
  18. 28  ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.h
  19. 213  ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.m
  20. 11  ECSlidingViewController/Vendor/ECSlidingViewController/UIImage+UIImage_ImageWithUIView.h
  21. 37  ECSlidingViewController/Vendor/ECSlidingViewController/UIImage+UIImage_ImageWithUIView.m
  22. 2  ECSlidingViewController/en.lproj/InfoPlist.strings
  23. 18  ECSlidingViewController/main.m
17  .gitignore
... ...
@@ -0,0 +1,17 @@
  1
+#Mac OS X Finder and whatnot
  2
+.DS_Store
  3
+.idea
  4
+
  5
+# Sparkle distribution Private Key (Don't check me in!)
  6
+dsa_priv.pem
  7
+
  8
+
  9
+# XCode (and ancestors) per-user config (very noisy, and not relevant)
  10
+*.mode1
  11
+*.mode1v3
  12
+*.mode2v3
  13
+*.perspective
  14
+*.perspectivev3
  15
+*.pbxuser
  16
+*.xcodeproj/project.xcworkspace/
  17
+*.xcodeproj/xcuserdata/
334  ECSlidingViewController.xcodeproj/project.pbxproj
... ...
@@ -0,0 +1,334 @@
  1
+// !$*UTF8*$!
  2
+{
  3
+	archiveVersion = 1;
  4
+	classes = {
  5
+	};
  6
+	objectVersion = 46;
  7
+	objects = {
  8
+
  9
+/* Begin PBXBuildFile section */
  10
+		2750E77114CDB0DF007727A0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2750E77014CDB0DF007727A0 /* UIKit.framework */; };
  11
+		2750E77314CDB0DF007727A0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2750E77214CDB0DF007727A0 /* Foundation.framework */; };
  12
+		2750E77514CDB0DF007727A0 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2750E77414CDB0DF007727A0 /* CoreGraphics.framework */; };
  13
+		2750E77B14CDB0DF007727A0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 2750E77914CDB0DF007727A0 /* InfoPlist.strings */; };
  14
+		2750E77D14CDB0DF007727A0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E77C14CDB0DF007727A0 /* main.m */; };
  15
+		2750E78114CDB0DF007727A0 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E78014CDB0DF007727A0 /* AppDelegate.m */; };
  16
+		2750E78814CDB114007727A0 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2750E78714CDB114007727A0 /* Storyboard.storyboard */; };
  17
+		2750E79414CDB93A007727A0 /* MenuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E79314CDB93A007727A0 /* MenuViewController.m */; };
  18
+		2750E79714CDB959007727A0 /* FirstTopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E79614CDB959007727A0 /* FirstTopViewController.m */; };
  19
+		2750E79A14CDB99A007727A0 /* SecondTopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E79914CDB99A007727A0 /* SecondTopViewController.m */; };
  20
+		2750E79D14CDBA48007727A0 /* ThirdTopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E79C14CDBA48007727A0 /* ThirdTopViewController.m */; };
  21
+		2750E7A014CDBC32007727A0 /* UnderRightViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E79F14CDBC32007727A0 /* UnderRightViewController.m */; };
  22
+		2750E7AE14CF1306007727A0 /* ECSlidingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E7AB14CF1306007727A0 /* ECSlidingViewController.m */; };
  23
+		2750E7AF14CF1306007727A0 /* UIImage+UIImage_ImageWithUIView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2750E7AD14CF1306007727A0 /* UIImage+UIImage_ImageWithUIView.m */; };
  24
+/* End PBXBuildFile section */
  25
+
  26
+/* Begin PBXFileReference section */
  27
+		2750E76C14CDB0DF007727A0 /* ECSlidingViewController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ECSlidingViewController.app; sourceTree = BUILT_PRODUCTS_DIR; };
  28
+		2750E77014CDB0DF007727A0 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
  29
+		2750E77214CDB0DF007727A0 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
  30
+		2750E77414CDB0DF007727A0 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  31
+		2750E77814CDB0DF007727A0 /* ECSlidingViewController-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ECSlidingViewController-Info.plist"; sourceTree = "<group>"; };
  32
+		2750E77A14CDB0DF007727A0 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  33
+		2750E77C14CDB0DF007727A0 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  34
+		2750E77E14CDB0DF007727A0 /* ECSlidingViewController-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ECSlidingViewController-Prefix.pch"; sourceTree = "<group>"; };
  35
+		2750E77F14CDB0DF007727A0 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
  36
+		2750E78014CDB0DF007727A0 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
  37
+		2750E78714CDB114007727A0 /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = "<group>"; };
  38
+		2750E79214CDB93A007727A0 /* MenuViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MenuViewController.h; sourceTree = "<group>"; };
  39
+		2750E79314CDB93A007727A0 /* MenuViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MenuViewController.m; sourceTree = "<group>"; };
  40
+		2750E79514CDB959007727A0 /* FirstTopViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FirstTopViewController.h; sourceTree = "<group>"; };
  41
+		2750E79614CDB959007727A0 /* FirstTopViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FirstTopViewController.m; sourceTree = "<group>"; };
  42
+		2750E79814CDB99A007727A0 /* SecondTopViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecondTopViewController.h; sourceTree = "<group>"; };
  43
+		2750E79914CDB99A007727A0 /* SecondTopViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SecondTopViewController.m; sourceTree = "<group>"; };
  44
+		2750E79B14CDBA48007727A0 /* ThirdTopViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThirdTopViewController.h; sourceTree = "<group>"; };
  45
+		2750E79C14CDBA48007727A0 /* ThirdTopViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ThirdTopViewController.m; sourceTree = "<group>"; };
  46
+		2750E79E14CDBC32007727A0 /* UnderRightViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UnderRightViewController.h; sourceTree = "<group>"; };
  47
+		2750E79F14CDBC32007727A0 /* UnderRightViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UnderRightViewController.m; sourceTree = "<group>"; };
  48
+		2750E7AA14CF1306007727A0 /* ECSlidingViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ECSlidingViewController.h; sourceTree = "<group>"; };
  49
+		2750E7AB14CF1306007727A0 /* ECSlidingViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ECSlidingViewController.m; sourceTree = "<group>"; };
  50
+		2750E7AC14CF1306007727A0 /* UIImage+UIImage_ImageWithUIView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+UIImage_ImageWithUIView.h"; sourceTree = "<group>"; };
  51
+		2750E7AD14CF1306007727A0 /* UIImage+UIImage_ImageWithUIView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+UIImage_ImageWithUIView.m"; sourceTree = "<group>"; };
  52
+/* End PBXFileReference section */
  53
+
  54
+/* Begin PBXFrameworksBuildPhase section */
  55
+		2750E76914CDB0DF007727A0 /* Frameworks */ = {
  56
+			isa = PBXFrameworksBuildPhase;
  57
+			buildActionMask = 2147483647;
  58
+			files = (
  59
+				2750E77114CDB0DF007727A0 /* UIKit.framework in Frameworks */,
  60
+				2750E77314CDB0DF007727A0 /* Foundation.framework in Frameworks */,
  61
+				2750E77514CDB0DF007727A0 /* CoreGraphics.framework in Frameworks */,
  62
+			);
  63
+			runOnlyForDeploymentPostprocessing = 0;
  64
+		};
  65
+/* End PBXFrameworksBuildPhase section */
  66
+
  67
+/* Begin PBXGroup section */
  68
+		2750E76114CDB0DF007727A0 = {
  69
+			isa = PBXGroup;
  70
+			children = (
  71
+				2750E77614CDB0DF007727A0 /* ECSlidingViewController */,
  72
+				2750E76F14CDB0DF007727A0 /* Frameworks */,
  73
+				2750E76D14CDB0DF007727A0 /* Products */,
  74
+			);
  75
+			sourceTree = "<group>";
  76
+		};
  77
+		2750E76D14CDB0DF007727A0 /* Products */ = {
  78
+			isa = PBXGroup;
  79
+			children = (
  80
+				2750E76C14CDB0DF007727A0 /* ECSlidingViewController.app */,
  81
+			);
  82
+			name = Products;
  83
+			sourceTree = "<group>";
  84
+		};
  85
+		2750E76F14CDB0DF007727A0 /* Frameworks */ = {
  86
+			isa = PBXGroup;
  87
+			children = (
  88
+				2750E77014CDB0DF007727A0 /* UIKit.framework */,
  89
+				2750E77214CDB0DF007727A0 /* Foundation.framework */,
  90
+				2750E77414CDB0DF007727A0 /* CoreGraphics.framework */,
  91
+			);
  92
+			name = Frameworks;
  93
+			sourceTree = "<group>";
  94
+		};
  95
+		2750E77614CDB0DF007727A0 /* ECSlidingViewController */ = {
  96
+			isa = PBXGroup;
  97
+			children = (
  98
+				2750E78A14CDB1CF007727A0 /* Controllers */,
  99
+				2750E78914CDB1C7007727A0 /* Vendor */,
  100
+				2750E77F14CDB0DF007727A0 /* AppDelegate.h */,
  101
+				2750E78014CDB0DF007727A0 /* AppDelegate.m */,
  102
+				2750E77714CDB0DF007727A0 /* Supporting Files */,
  103
+				2750E78714CDB114007727A0 /* Storyboard.storyboard */,
  104
+			);
  105
+			path = ECSlidingViewController;
  106
+			sourceTree = "<group>";
  107
+		};
  108
+		2750E77714CDB0DF007727A0 /* Supporting Files */ = {
  109
+			isa = PBXGroup;
  110
+			children = (
  111
+				2750E77814CDB0DF007727A0 /* ECSlidingViewController-Info.plist */,
  112
+				2750E77914CDB0DF007727A0 /* InfoPlist.strings */,
  113
+				2750E77C14CDB0DF007727A0 /* main.m */,
  114
+				2750E77E14CDB0DF007727A0 /* ECSlidingViewController-Prefix.pch */,
  115
+			);
  116
+			name = "Supporting Files";
  117
+			sourceTree = "<group>";
  118
+		};
  119
+		2750E78914CDB1C7007727A0 /* Vendor */ = {
  120
+			isa = PBXGroup;
  121
+			children = (
  122
+				2750E7A914CF1306007727A0 /* ECSlidingViewController */,
  123
+			);
  124
+			name = Vendor;
  125
+			sourceTree = "<group>";
  126
+		};
  127
+		2750E78A14CDB1CF007727A0 /* Controllers */ = {
  128
+			isa = PBXGroup;
  129
+			children = (
  130
+				2750E79514CDB959007727A0 /* FirstTopViewController.h */,
  131
+				2750E79614CDB959007727A0 /* FirstTopViewController.m */,
  132
+				2750E79214CDB93A007727A0 /* MenuViewController.h */,
  133
+				2750E79314CDB93A007727A0 /* MenuViewController.m */,
  134
+				2750E79814CDB99A007727A0 /* SecondTopViewController.h */,
  135
+				2750E79914CDB99A007727A0 /* SecondTopViewController.m */,
  136
+				2750E79B14CDBA48007727A0 /* ThirdTopViewController.h */,
  137
+				2750E79C14CDBA48007727A0 /* ThirdTopViewController.m */,
  138
+				2750E79E14CDBC32007727A0 /* UnderRightViewController.h */,
  139
+				2750E79F14CDBC32007727A0 /* UnderRightViewController.m */,
  140
+			);
  141
+			name = Controllers;
  142
+			sourceTree = "<group>";
  143
+		};
  144
+		2750E7A914CF1306007727A0 /* ECSlidingViewController */ = {
  145
+			isa = PBXGroup;
  146
+			children = (
  147
+				2750E7AA14CF1306007727A0 /* ECSlidingViewController.h */,
  148
+				2750E7AB14CF1306007727A0 /* ECSlidingViewController.m */,
  149
+				2750E7AC14CF1306007727A0 /* UIImage+UIImage_ImageWithUIView.h */,
  150
+				2750E7AD14CF1306007727A0 /* UIImage+UIImage_ImageWithUIView.m */,
  151
+			);
  152
+			name = ECSlidingViewController;
  153
+			path = Vendor/ECSlidingViewController;
  154
+			sourceTree = "<group>";
  155
+		};
  156
+/* End PBXGroup section */
  157
+
  158
+/* Begin PBXNativeTarget section */
  159
+		2750E76B14CDB0DF007727A0 /* ECSlidingViewController */ = {
  160
+			isa = PBXNativeTarget;
  161
+			buildConfigurationList = 2750E78414CDB0DF007727A0 /* Build configuration list for PBXNativeTarget "ECSlidingViewController" */;
  162
+			buildPhases = (
  163
+				2750E76814CDB0DF007727A0 /* Sources */,
  164
+				2750E76914CDB0DF007727A0 /* Frameworks */,
  165
+				2750E76A14CDB0DF007727A0 /* Resources */,
  166
+			);
  167
+			buildRules = (
  168
+			);
  169
+			dependencies = (
  170
+			);
  171
+			name = ECSlidingViewController;
  172
+			productName = ECSlidingViewController;
  173
+			productReference = 2750E76C14CDB0DF007727A0 /* ECSlidingViewController.app */;
  174
+			productType = "com.apple.product-type.application";
  175
+		};
  176
+/* End PBXNativeTarget section */
  177
+
  178
+/* Begin PBXProject section */
  179
+		2750E76314CDB0DF007727A0 /* Project object */ = {
  180
+			isa = PBXProject;
  181
+			attributes = {
  182
+				LastUpgradeCheck = 0420;
  183
+			};
  184
+			buildConfigurationList = 2750E76614CDB0DF007727A0 /* Build configuration list for PBXProject "ECSlidingViewController" */;
  185
+			compatibilityVersion = "Xcode 3.2";
  186
+			developmentRegion = English;
  187
+			hasScannedForEncodings = 0;
  188
+			knownRegions = (
  189
+				en,
  190
+			);
  191
+			mainGroup = 2750E76114CDB0DF007727A0;
  192
+			productRefGroup = 2750E76D14CDB0DF007727A0 /* Products */;
  193
+			projectDirPath = "";
  194
+			projectRoot = "";
  195
+			targets = (
  196
+				2750E76B14CDB0DF007727A0 /* ECSlidingViewController */,
  197
+			);
  198
+		};
  199
+/* End PBXProject section */
  200
+
  201
+/* Begin PBXResourcesBuildPhase section */
  202
+		2750E76A14CDB0DF007727A0 /* Resources */ = {
  203
+			isa = PBXResourcesBuildPhase;
  204
+			buildActionMask = 2147483647;
  205
+			files = (
  206
+				2750E77B14CDB0DF007727A0 /* InfoPlist.strings in Resources */,
  207
+				2750E78814CDB114007727A0 /* Storyboard.storyboard in Resources */,
  208
+			);
  209
+			runOnlyForDeploymentPostprocessing = 0;
  210
+		};
  211
+/* End PBXResourcesBuildPhase section */
  212
+
  213
+/* Begin PBXSourcesBuildPhase section */
  214
+		2750E76814CDB0DF007727A0 /* Sources */ = {
  215
+			isa = PBXSourcesBuildPhase;
  216
+			buildActionMask = 2147483647;
  217
+			files = (
  218
+				2750E77D14CDB0DF007727A0 /* main.m in Sources */,
  219
+				2750E78114CDB0DF007727A0 /* AppDelegate.m in Sources */,
  220
+				2750E79414CDB93A007727A0 /* MenuViewController.m in Sources */,
  221
+				2750E79714CDB959007727A0 /* FirstTopViewController.m in Sources */,
  222
+				2750E79A14CDB99A007727A0 /* SecondTopViewController.m in Sources */,
  223
+				2750E79D14CDBA48007727A0 /* ThirdTopViewController.m in Sources */,
  224
+				2750E7A014CDBC32007727A0 /* UnderRightViewController.m in Sources */,
  225
+				2750E7AE14CF1306007727A0 /* ECSlidingViewController.m in Sources */,
  226
+				2750E7AF14CF1306007727A0 /* UIImage+UIImage_ImageWithUIView.m in Sources */,
  227
+			);
  228
+			runOnlyForDeploymentPostprocessing = 0;
  229
+		};
  230
+/* End PBXSourcesBuildPhase section */
  231
+
  232
+/* Begin PBXVariantGroup section */
  233
+		2750E77914CDB0DF007727A0 /* InfoPlist.strings */ = {
  234
+			isa = PBXVariantGroup;
  235
+			children = (
  236
+				2750E77A14CDB0DF007727A0 /* en */,
  237
+			);
  238
+			name = InfoPlist.strings;
  239
+			sourceTree = "<group>";
  240
+		};
  241
+/* End PBXVariantGroup section */
  242
+
  243
+/* Begin XCBuildConfiguration section */
  244
+		2750E78214CDB0DF007727A0 /* Debug */ = {
  245
+			isa = XCBuildConfiguration;
  246
+			buildSettings = {
  247
+				ALWAYS_SEARCH_USER_PATHS = NO;
  248
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
  249
+				CLANG_ENABLE_OBJC_ARC = YES;
  250
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  251
+				COPY_PHASE_STRIP = NO;
  252
+				GCC_C_LANGUAGE_STANDARD = gnu99;
  253
+				GCC_DYNAMIC_NO_PIC = NO;
  254
+				GCC_OPTIMIZATION_LEVEL = 0;
  255
+				GCC_PREPROCESSOR_DEFINITIONS = (
  256
+					"DEBUG=1",
  257
+					"$(inherited)",
  258
+				);
  259
+				GCC_SYMBOLS_PRIVATE_EXTERN = NO;
  260
+				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
  261
+				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
  262
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
  263
+				GCC_WARN_UNUSED_VARIABLE = YES;
  264
+				IPHONEOS_DEPLOYMENT_TARGET = 5.0;
  265
+				SDKROOT = iphoneos;
  266
+			};
  267
+			name = Debug;
  268
+		};
  269
+		2750E78314CDB0DF007727A0 /* Release */ = {
  270
+			isa = XCBuildConfiguration;
  271
+			buildSettings = {
  272
+				ALWAYS_SEARCH_USER_PATHS = NO;
  273
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
  274
+				CLANG_ENABLE_OBJC_ARC = YES;
  275
+				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  276
+				COPY_PHASE_STRIP = YES;
  277
+				GCC_C_LANGUAGE_STANDARD = gnu99;
  278
+				GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
  279
+				GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
  280
+				GCC_WARN_ABOUT_RETURN_TYPE = YES;
  281
+				GCC_WARN_UNUSED_VARIABLE = YES;
  282
+				IPHONEOS_DEPLOYMENT_TARGET = 5.0;
  283
+				OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
  284
+				SDKROOT = iphoneos;
  285
+				VALIDATE_PRODUCT = YES;
  286
+			};
  287
+			name = Release;
  288
+		};
  289
+		2750E78514CDB0DF007727A0 /* Debug */ = {
  290
+			isa = XCBuildConfiguration;
  291
+			buildSettings = {
  292
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
  293
+				GCC_PREFIX_HEADER = "ECSlidingViewController/ECSlidingViewController-Prefix.pch";
  294
+				INFOPLIST_FILE = "ECSlidingViewController/ECSlidingViewController-Info.plist";
  295
+				PRODUCT_NAME = "$(TARGET_NAME)";
  296
+				WRAPPER_EXTENSION = app;
  297
+			};
  298
+			name = Debug;
  299
+		};
  300
+		2750E78614CDB0DF007727A0 /* Release */ = {
  301
+			isa = XCBuildConfiguration;
  302
+			buildSettings = {
  303
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
  304
+				GCC_PREFIX_HEADER = "ECSlidingViewController/ECSlidingViewController-Prefix.pch";
  305
+				INFOPLIST_FILE = "ECSlidingViewController/ECSlidingViewController-Info.plist";
  306
+				PRODUCT_NAME = "$(TARGET_NAME)";
  307
+				WRAPPER_EXTENSION = app;
  308
+			};
  309
+			name = Release;
  310
+		};
  311
+/* End XCBuildConfiguration section */
  312
+
  313
+/* Begin XCConfigurationList section */
  314
+		2750E76614CDB0DF007727A0 /* Build configuration list for PBXProject "ECSlidingViewController" */ = {
  315
+			isa = XCConfigurationList;
  316
+			buildConfigurations = (
  317
+				2750E78214CDB0DF007727A0 /* Debug */,
  318
+				2750E78314CDB0DF007727A0 /* Release */,
  319
+			);
  320
+			defaultConfigurationIsVisible = 0;
  321
+			defaultConfigurationName = Release;
  322
+		};
  323
+		2750E78414CDB0DF007727A0 /* Build configuration list for PBXNativeTarget "ECSlidingViewController" */ = {
  324
+			isa = XCConfigurationList;
  325
+			buildConfigurations = (
  326
+				2750E78514CDB0DF007727A0 /* Debug */,
  327
+				2750E78614CDB0DF007727A0 /* Release */,
  328
+			);
  329
+			defaultConfigurationIsVisible = 0;
  330
+		};
  331
+/* End XCConfigurationList section */
  332
+	};
  333
+	rootObject = 2750E76314CDB0DF007727A0 /* Project object */;
  334
+}
16  ECSlidingViewController/AppDelegate.h
... ...
@@ -0,0 +1,16 @@
  1
+//
  2
+//  AppDelegate.h
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+#import "ECSlidingViewController.h"
  11
+
  12
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
  13
+
  14
+@property (strong, nonatomic) UIWindow *window;
  15
+
  16
+@end
67  ECSlidingViewController/AppDelegate.m
... ...
@@ -0,0 +1,67 @@
  1
+//
  2
+//  AppDelegate.m
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import "AppDelegate.h"
  10
+
  11
+@implementation AppDelegate
  12
+
  13
+@synthesize window = _window;
  14
+
  15
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  16
+{
  17
+  ECSlidingViewController *slidingViewController = (ECSlidingViewController *)self.window.rootViewController;
  18
+  UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
  19
+  slidingViewController.underLeftViewController = [storyboard instantiateViewControllerWithIdentifier:@"Menu"];
  20
+  slidingViewController.topViewController       = [storyboard instantiateViewControllerWithIdentifier:@"FirstTop"];
  21
+  
  22
+  slidingViewController.anchorRightRevealAmount = 280;
  23
+  slidingViewController.anchorLeftRevealAmount  = 280;
  24
+  
  25
+  return YES;
  26
+}
  27
+
  28
+- (void)applicationWillResignActive:(UIApplication *)application
  29
+{
  30
+  /*
  31
+   Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
  32
+   Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
  33
+   */
  34
+}
  35
+
  36
+- (void)applicationDidEnterBackground:(UIApplication *)application
  37
+{
  38
+  /*
  39
+   Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 
  40
+   If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  41
+   */
  42
+}
  43
+
  44
+- (void)applicationWillEnterForeground:(UIApplication *)application
  45
+{
  46
+  /*
  47
+   Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
  48
+   */
  49
+}
  50
+
  51
+- (void)applicationDidBecomeActive:(UIApplication *)application
  52
+{
  53
+  /*
  54
+   Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
  55
+   */
  56
+}
  57
+
  58
+- (void)applicationWillTerminate:(UIApplication *)application
  59
+{
  60
+  /*
  61
+   Called when the application is about to terminate.
  62
+   Save data if appropriate.
  63
+   See also applicationDidEnterBackground:.
  64
+   */
  65
+}
  66
+
  67
+@end
43  ECSlidingViewController/ECSlidingViewController-Info.plist
... ...
@@ -0,0 +1,43 @@
  1
+<?xml version="1.0" encoding="UTF-8"?>
  2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3
+<plist version="1.0">
  4
+<dict>
  5
+	<key>CFBundleDevelopmentRegion</key>
  6
+	<string>en</string>
  7
+	<key>CFBundleDisplayName</key>
  8
+	<string>${PRODUCT_NAME}</string>
  9
+	<key>CFBundleExecutable</key>
  10
+	<string>${EXECUTABLE_NAME}</string>
  11
+	<key>CFBundleIconFiles</key>
  12
+	<array/>
  13
+	<key>CFBundleIdentifier</key>
  14
+	<string>edgecase.${PRODUCT_NAME:rfc1034identifier}</string>
  15
+	<key>CFBundleInfoDictionaryVersion</key>
  16
+	<string>6.0</string>
  17
+	<key>CFBundleName</key>
  18
+	<string>${PRODUCT_NAME}</string>
  19
+	<key>CFBundlePackageType</key>
  20
+	<string>APPL</string>
  21
+	<key>CFBundleShortVersionString</key>
  22
+	<string>1.0</string>
  23
+	<key>CFBundleSignature</key>
  24
+	<string>????</string>
  25
+	<key>CFBundleVersion</key>
  26
+	<string>1.0</string>
  27
+	<key>LSRequiresIPhoneOS</key>
  28
+	<true/>
  29
+	<key>UIMainStoryboardFile</key>
  30
+	<string>Storyboard</string>
  31
+	<key>UIRequiredDeviceCapabilities</key>
  32
+	<array>
  33
+		<string>armv7</string>
  34
+	</array>
  35
+	<key>UISupportedInterfaceOrientations</key>
  36
+	<array>
  37
+		<string>UIInterfaceOrientationPortrait</string>
  38
+		<string>UIInterfaceOrientationLandscapeLeft</string>
  39
+		<string>UIInterfaceOrientationLandscapeRight</string>
  40
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
  41
+	</array>
  42
+</dict>
  43
+</plist>
14  ECSlidingViewController/ECSlidingViewController-Prefix.pch
... ...
@@ -0,0 +1,14 @@
  1
+//
  2
+// Prefix header for all source files of the 'ECSlidingViewController' target in the 'ECSlidingViewController' project
  3
+//
  4
+
  5
+#import <Availability.h>
  6
+
  7
+#ifndef __IPHONE_3_0
  8
+#warning "This project uses features only available in iOS SDK 3.0 and later."
  9
+#endif
  10
+
  11
+#ifdef __OBJC__
  12
+  #import <UIKit/UIKit.h>
  13
+  #import <Foundation/Foundation.h>
  14
+#endif
17  ECSlidingViewController/FirstTopViewController.h
... ...
@@ -0,0 +1,17 @@
  1
+//
  2
+//  FirstTopViewController.h
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+#import "ECSlidingViewController.h"
  11
+
  12
+@interface FirstTopViewController : UIViewController
  13
+
  14
+- (IBAction)revealMenu:(id)sender;
  15
+- (IBAction)revealUnderRight:(id)sender;
  16
+
  17
+@end
29  ECSlidingViewController/FirstTopViewController.m
... ...
@@ -0,0 +1,29 @@
  1
+//
  2
+//  FirstTopViewController.m
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import "FirstTopViewController.h"
  10
+
  11
+@implementation FirstTopViewController
  12
+
  13
+- (void)viewWillAppear:(BOOL)animated
  14
+{
  15
+  [super viewWillAppear:animated];
  16
+  [self.view addGestureRecognizer:self.slidingViewController.panGesture];
  17
+}
  18
+
  19
+- (IBAction)revealMenu:(id)sender
  20
+{
  21
+  [self.slidingViewController anchorToRight];
  22
+}
  23
+
  24
+- (IBAction)revealUnderRight:(id)sender
  25
+{
  26
+  [self.slidingViewController anchorToLeft];
  27
+}
  28
+
  29
+@end
13  ECSlidingViewController/MenuViewController.h
... ...
@@ -0,0 +1,13 @@
  1
+//
  2
+//  MenuViewController.h
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+
  11
+@interface MenuViewController : UIViewController <UITableViewDataSource, UITabBarControllerDelegate>
  12
+
  13
+@end
46  ECSlidingViewController/MenuViewController.m
... ...
@@ -0,0 +1,46 @@
  1
+//
  2
+//  MenuViewController.m
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import "MenuViewController.h"
  10
+
  11
+@interface MenuViewController()
  12
+@property (nonatomic, strong) NSArray *menuItems;
  13
+@end
  14
+
  15
+@implementation MenuViewController
  16
+@synthesize menuItems;
  17
+
  18
+- (void)awakeFromNib
  19
+{
  20
+  self.menuItems = [NSArray arrayWithObjects:@"First", @"Second", @"Third", nil];
  21
+}
  22
+
  23
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)sectionIndex
  24
+{
  25
+  return self.menuItems.count;
  26
+}
  27
+
  28
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  29
+{
  30
+  NSString *cellIdentifier = @"MenuItemCell";
  31
+  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
  32
+  if (cell == nil) {
  33
+    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellIdentifier];
  34
+  }
  35
+  
  36
+  cell.textLabel.text = [self.menuItems objectAtIndex:indexPath.row];
  37
+  
  38
+  return cell;
  39
+}
  40
+
  41
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  42
+{
  43
+  NSLog(@"sup: %@", [self.menuItems objectAtIndex:indexPath.row]);
  44
+}
  45
+
  46
+@end
13  ECSlidingViewController/SecondTopViewController.h
... ...
@@ -0,0 +1,13 @@
  1
+//
  2
+//  SecondTopViewController.h
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+
  11
+@interface SecondTopViewController : UIViewController
  12
+
  13
+@end
13  ECSlidingViewController/SecondTopViewController.m
... ...
@@ -0,0 +1,13 @@
  1
+//
  2
+//  SecondTopViewController.m
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import "SecondTopViewController.h"
  10
+
  11
+@implementation SecondTopViewController
  12
+
  13
+@end
158  ECSlidingViewController/Storyboard.storyboard
... ...
@@ -0,0 +1,158 @@
  1
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.0" toolsVersion="1938" systemVersion="11C74" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" initialViewController="H2v-Ob-DhD">
  3
+    <dependencies>
  4
+        <development defaultVersion="4200" identifier="xcode"/>
  5
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="933"/>
  6
+    </dependencies>
  7
+    <scenes>
  8
+        <scene sceneID="cNz-He-b4Z">
  9
+            <objects>
  10
+                <placeholder placeholderIdentifier="IBFirstResponder" id="7Zx-U8-fIp" userLabel="First Responder" sceneMemberID="firstResponder"/>
  11
+                <viewController storyboardIdentifier="Menu" id="Wid-ZD-WEx" customClass="MenuViewController" sceneMemberID="viewController">
  12
+                    <view key="view" contentMode="scaleToFill" id="W0P-Wb-YYH">
  13
+                        <rect key="frame" x="0.0" y="20" width="320" height="460"/>
  14
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  15
+                        <subviews>
  16
+                            <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="35U-4J-jxL">
  17
+                                <rect key="frame" x="0.0" y="0.0" width="320" height="460"/>
  18
+                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  19
+                                <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
  20
+                                <prototypes>
  21
+                                    <tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="MenuItemCell" id="Q6b-sq-8AG">
  22
+                                        <rect key="frame" x="0.0" y="22" width="320" height="44"/>
  23
+                                        <autoresizingMask key="autoresizingMask"/>
  24
+                                        <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
  25
+                                            <rect key="frame" x="0.0" y="0.0" width="320" height="43"/>
  26
+                                            <autoresizingMask key="autoresizingMask"/>
  27
+                                            <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
  28
+                                        </view>
  29
+                                    </tableViewCell>
  30
+                                </prototypes>
  31
+                                <connections>
  32
+                                    <outlet property="dataSource" destination="Wid-ZD-WEx" id="Gc7-Bf-Phn"/>
  33
+                                    <outlet property="delegate" destination="Wid-ZD-WEx" id="X3D-ib-PWC"/>
  34
+                                </connections>
  35
+                            </tableView>
  36
+                        </subviews>
  37
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  38
+                    </view>
  39
+                </viewController>
  40
+            </objects>
  41
+            <point key="canvasLocation" x="-252" y="-287"/>
  42
+        </scene>
  43
+        <scene sceneID="jdT-tJ-z4E">
  44
+            <objects>
  45
+                <placeholder placeholderIdentifier="IBFirstResponder" id="zjz-eV-f99" userLabel="First Responder" sceneMemberID="firstResponder"/>
  46
+                <viewController storyboardIdentifier="ThirdTop" id="LsE-e5-Jbi" customClass="ThirdTopViewController" sceneMemberID="viewController">
  47
+                    <view key="view" contentMode="scaleToFill" id="UCM-3d-Qlw">
  48
+                        <rect key="frame" x="0.0" y="20" width="320" height="460"/>
  49
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  50
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  51
+                    </view>
  52
+                </viewController>
  53
+            </objects>
  54
+            <point key="canvasLocation" x="216" y="-1588"/>
  55
+        </scene>
  56
+        <scene sceneID="dCa-Xc-F9L">
  57
+            <objects>
  58
+                <placeholder placeholderIdentifier="IBFirstResponder" id="7AE-EV-BdB" userLabel="First Responder" sceneMemberID="firstResponder"/>
  59
+                <viewController storyboardIdentifier="SecondTop" id="XYc-ji-qQz" customClass="SecondTopViewController" sceneMemberID="viewController">
  60
+                    <view key="view" contentMode="scaleToFill" id="Z4T-qv-OS6">
  61
+                        <rect key="frame" x="0.0" y="20" width="320" height="460"/>
  62
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  63
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  64
+                    </view>
  65
+                </viewController>
  66
+            </objects>
  67
+            <point key="canvasLocation" x="216" y="-942"/>
  68
+        </scene>
  69
+        <scene sceneID="FCi-rO-pkm">
  70
+            <objects>
  71
+                <placeholder placeholderIdentifier="IBFirstResponder" id="opW-8m-5uU" userLabel="First Responder" sceneMemberID="firstResponder"/>
  72
+                <viewController storyboardIdentifier="FirstTop" id="fYD-9N-EQW" customClass="FirstTopViewController" sceneMemberID="viewController">
  73
+                    <view key="view" contentMode="scaleToFill" id="d8v-Bl-Aef">
  74
+                        <rect key="frame" x="0.0" y="20" width="320" height="460"/>
  75
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  76
+                        <subviews>
  77
+                            <navigationBar contentMode="scaleToFill" id="MXB-nc-Wa5">
  78
+                                <rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
  79
+                                <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
  80
+                                <items>
  81
+                                    <navigationItem title="First" id="z7W-L3-FP0">
  82
+                                        <barButtonItem key="leftBarButtonItem" title="Menu" id="Ob6-v4-e1S">
  83
+                                            <connections>
  84
+                                                <action selector="revealMenu:" destination="fYD-9N-EQW" id="jES-cY-WzX"/>
  85
+                                            </connections>
  86
+                                        </barButtonItem>
  87
+                                        <barButtonItem key="rightBarButtonItem" title="Right" id="rMo-8V-Mkk">
  88
+                                            <connections>
  89
+                                                <action selector="revealUnderRight:" destination="fYD-9N-EQW" id="i2i-od-n9T"/>
  90
+                                            </connections>
  91
+                                        </barButtonItem>
  92
+                                    </navigationItem>
  93
+                                </items>
  94
+                            </navigationBar>
  95
+                        </subviews>
  96
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  97
+                    </view>
  98
+                </viewController>
  99
+            </objects>
  100
+            <point key="canvasLocation" x="216" y="-286"/>
  101
+        </scene>
  102
+        <scene sceneID="ALv-FQ-oDv">
  103
+            <objects>
  104
+                <placeholder placeholderIdentifier="IBFirstResponder" id="WEj-qL-s8R" userLabel="First Responder" sceneMemberID="firstResponder"/>
  105
+                <viewController storyboardIdentifier="UnderRight" id="Qdk-8p-DGY" customClass="UnderRightViewController" sceneMemberID="viewController">
  106
+                    <view key="view" contentMode="scaleToFill" id="XRA-pX-V7S">
  107
+                        <rect key="frame" x="0.0" y="20" width="320" height="460"/>
  108
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  109
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  110
+                    </view>
  111
+                </viewController>
  112
+            </objects>
  113
+            <point key="canvasLocation" x="681" y="-286"/>
  114
+        </scene>
  115
+        <scene sceneID="OC6-i3-9aC">
  116
+            <objects>
  117
+                <placeholder placeholderIdentifier="IBFirstResponder" id="BIB-pv-C48" userLabel="First Responder" sceneMemberID="firstResponder"/>
  118
+                <viewController id="H2v-Ob-DhD" customClass="ECSlidingViewController" sceneMemberID="viewController">
  119
+                    <view key="view" contentMode="scaleToFill" id="IWW-TW-Yeo">
  120
+                        <rect key="frame" x="0.0" y="20" width="320" height="460"/>
  121
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
  122
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  123
+                    </view>
  124
+                </viewController>
  125
+            </objects>
  126
+            <point key="canvasLocation" x="-720" y="-287"/>
  127
+        </scene>
  128
+    </scenes>
  129
+    <classes>
  130
+        <class className="ECSlidingViewController" superclassName="UIViewController">
  131
+            <source key="sourceIdentifier" type="project" relativePath="./Classes/ECSlidingViewController.h"/>
  132
+        </class>
  133
+        <class className="FirstTopViewController" superclassName="UIViewController">
  134
+            <source key="sourceIdentifier" type="project" relativePath="./Classes/FirstTopViewController.h"/>
  135
+            <relationships>
  136
+                <relationship kind="action" name="revealMenu:"/>
  137
+                <relationship kind="action" name="revealUnderRight:"/>
  138
+            </relationships>
  139
+        </class>
  140
+        <class className="MenuViewController" superclassName="UIViewController">
  141
+            <source key="sourceIdentifier" type="project" relativePath="./Classes/MenuViewController.h"/>
  142
+        </class>
  143
+        <class className="SecondTopViewController" superclassName="UIViewController">
  144
+            <source key="sourceIdentifier" type="project" relativePath="./Classes/SecondTopViewController.h"/>
  145
+        </class>
  146
+        <class className="ThirdTopViewController" superclassName="UIViewController">
  147
+            <source key="sourceIdentifier" type="project" relativePath="./Classes/ThirdTopViewController.h"/>
  148
+        </class>
  149
+        <class className="UnderRightViewController" superclassName="UIViewController">
  150
+            <source key="sourceIdentifier" type="project" relativePath="./Classes/UnderRightViewController.h"/>
  151
+        </class>
  152
+    </classes>
  153
+    <simulatedMetricsContainer key="defaultSimulatedMetrics">
  154
+        <simulatedStatusBarMetrics key="statusBar"/>
  155
+        <simulatedOrientationMetrics key="orientation"/>
  156
+        <simulatedScreenMetrics key="destination"/>
  157
+    </simulatedMetricsContainer>
  158
+</document>
13  ECSlidingViewController/ThirdTopViewController.h
... ...
@@ -0,0 +1,13 @@
  1
+//
  2
+//  ThirdTopViewController.h
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+
  11
+@interface ThirdTopViewController : UIViewController
  12
+
  13
+@end
13  ECSlidingViewController/ThirdTopViewController.m
... ...
@@ -0,0 +1,13 @@
  1
+//
  2
+//  ThirdTopViewController.m
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import "ThirdTopViewController.h"
  10
+
  11
+@implementation ThirdTopViewController
  12
+
  13
+@end
13  ECSlidingViewController/UnderRightViewController.h
... ...
@@ -0,0 +1,13 @@
  1
+//
  2
+//  UnderRightViewController.h
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+
  11
+@interface UnderRightViewController : UIViewController
  12
+
  13
+@end
13  ECSlidingViewController/UnderRightViewController.m
... ...
@@ -0,0 +1,13 @@
  1
+//
  2
+//  UnderRightViewController.m
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import "UnderRightViewController.h"
  10
+
  11
+@implementation UnderRightViewController
  12
+
  13
+@end
28  ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.h
... ...
@@ -0,0 +1,28 @@
  1
+//
  2
+//  ECSlidingViewController.h
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import <UIKit/UIKit.h>
  10
+#import "UIImage+UIImage_ImageWithUIView.h"
  11
+
  12
+@interface ECSlidingViewController : UIViewController
  13
+
  14
+@property (nonatomic, strong) UIViewController *underLeftViewController;
  15
+@property (nonatomic, strong) UIViewController *topViewController;
  16
+@property (nonatomic, unsafe_unretained) CGFloat anchorRightRevealAmount;
  17
+@property (nonatomic, unsafe_unretained) CGFloat anchorLeftRevealAmount;
  18
+@property (nonatomic, strong) UIPanGestureRecognizer *panGesture;
  19
+
  20
+- (void)anchorToRight;
  21
+- (void)anchorToLeft;
  22
+- (void)reset;
  23
+
  24
+@end
  25
+
  26
+@interface UIViewController(SlidingViewExtension)
  27
+- (ECSlidingViewController *)slidingViewController;
  28
+@end
213  ECSlidingViewController/Vendor/ECSlidingViewController/ECSlidingViewController.m
... ...
@@ -0,0 +1,213 @@
  1
+//
  2
+//  ECSlidingViewController.m
  3
+//  ECSlidingViewController
  4
+//
  5
+//  Created by Michael Enriquez on 1/23/12.
  6
+//  Copyright (c) 2012 EdgeCase. All rights reserved.
  7
+//
  8
+
  9
+#import "ECSlidingViewController.h"
  10
+
  11
+@interface ECSlidingViewController()
  12
+
  13
+@property (nonatomic, strong) UIButton *topViewSnapshot;
  14
+@property (nonatomic, strong) UITapGestureRecognizer *resetTapGesture;
  15
+@property (nonatomic, unsafe_unretained) CGFloat initialTouchPositionX;
  16
+@property (nonatomic, unsafe_unretained) CGFloat initialLeftEdgePosition;
  17
+
  18
+- (NSUInteger)autoResizeToFillScreen;
  19
+- (UIView *)topView;
  20
+- (UIView *)underLeftView;
  21
+- (void)updateTopViewLeftEdgePosition:(CGFloat)position;
  22
+- (void)addTopViewSnapshot;
  23
+- (void)removeTopViewSnapshot;
  24
+- (CGFloat)screenWidth;
  25
+- (CGFloat)screenWidthForOrientation:(UIInterfaceOrientation)orientation;
  26
+- (BOOL)underLeftShowing;
  27
+- (BOOL)underRightShowing;
  28
+
  29
+@end
  30
+
  31
+@implementation UIViewController(SlidingViewExtension)
  32
+
  33
+- (ECSlidingViewController *)slidingViewController
  34
+{
  35
+  UIViewController *viewController = self.parentViewController;
  36
+  while (!(viewController == nil || [viewController isMemberOfClass:[ECSlidingViewController class]])) {
  37
+    viewController = viewController.parentViewController;
  38
+  }
  39
+  
  40
+  return (ECSlidingViewController *)viewController;
  41
+}
  42
+
  43
+@end
  44
+
  45
+@implementation ECSlidingViewController
  46
+@synthesize underLeftViewController = _underLeftViewController;
  47
+@synthesize topViewController = _topViewController;
  48
+@synthesize anchorRightRevealAmount;
  49
+@synthesize anchorLeftRevealAmount;
  50
+@synthesize topViewSnapshot;
  51
+@synthesize resetTapGesture;
  52
+@synthesize initialTouchPositionX;
  53
+@synthesize initialLeftEdgePosition;
  54
+@synthesize panGesture;
  55
+
  56
+- (void)setTopViewController:(UIViewController *)theTopViewController
  57
+{
  58
+  _topViewController = theTopViewController;
  59
+  [_topViewController.view setAutoresizingMask:self.autoResizeToFillScreen];
  60
+  [_topViewController.view setFrame:self.view.bounds];
  61
+  [self.view addSubview:_topViewController.view];
  62
+}
  63
+
  64
+- (void)setUnderLeftViewController:(UIViewController *)theUnderLeftViewController
  65
+{
  66
+  _underLeftViewController = theUnderLeftViewController;
  67
+  [_underLeftViewController.view setAutoresizingMask:self.autoResizeToFillScreen];
  68
+  [_underLeftViewController.view setFrame:self.view.bounds];
  69
+  [self.view insertSubview:_underLeftViewController.view atIndex:0];
  70
+}
  71
+
  72
+- (void)viewDidLoad
  73
+{
  74
+  self.resetTapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(reset)];
  75
+  self.panGesture      = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(updateTopViewLeftEdgePositionWithRecognizer:)];
  76
+}
  77
+
  78
+- (void)viewWillAppear:(BOOL)animated
  79
+{
  80
+  [super viewWillAppear:animated];
  81
+  
  82
+  [self addChildViewController:self.underLeftViewController];
  83
+  [self.underLeftViewController didMoveToParentViewController:self];
  84
+  
  85
+  [self addChildViewController:self.topViewController];
  86
+  [self.topViewController didMoveToParentViewController:self];
  87
+}
  88
+
  89
+- (void)updateTopViewLeftEdgePositionWithRecognizer:(UIPanGestureRecognizer *)recognizer
  90
+{
  91
+  CGPoint currentTouchPoint     = [recognizer locationInView:self.view];
  92
+  CGFloat currentTouchPositionX = currentTouchPoint.x;
  93
+  
  94
+  if (recognizer.state == UIGestureRecognizerStateBegan) {
  95
+    self.initialTouchPositionX = currentTouchPositionX;
  96
+    self.initialLeftEdgePosition = self.topView.frame.origin.x;
  97
+  } else if (recognizer.state == UIGestureRecognizerStateChanged) {
  98
+    [self updateTopViewLeftEdgePosition:self.initialLeftEdgePosition + currentTouchPositionX - self.initialTouchPositionX];
  99
+  } else if (recognizer.state == UIGestureRecognizerStateEnded || recognizer.state == UIGestureRecognizerStateCancelled) {
  100
+    CGPoint currentVelocityPoint = [recognizer velocityInView:self.view];
  101
+    CGFloat currentVelocityX     = currentVelocityPoint.x;
  102
+    if ([self underLeftShowing] && currentVelocityX > 100) {
  103
+      [self anchorToRight];
  104
+    } else if ([self underRightShowing] && currentVelocityX < 100) {
  105
+      [self anchorToLeft];
  106
+    } else {
  107
+      [self reset];
  108
+    }
  109
+  }
  110
+}
  111
+
  112
+- (void)anchorToRight
  113
+{
  114
+  [self addTopViewSnapshot];
  115
+  [self.topView addGestureRecognizer:self.resetTapGesture];
  116
+  [UIView animateWithDuration:0.25f animations:^{
  117
+    [self updateTopViewLeftEdgePosition:self.anchorRightRevealAmount];
  118
+  }];
  119
+}
  120
+
  121
+- (void)anchorToLeft
  122
+{
  123
+  [self addTopViewSnapshot];
  124
+  [self.topView addGestureRecognizer:self.resetTapGesture];
  125
+  [UIView animateWithDuration:0.25f animations:^{
  126
+    [self updateTopViewLeftEdgePosition:-self.anchorLeftRevealAmount];
  127
+  }];
  128
+}