├── .gitignore ├── PresentationControllerSample.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── PresentationControllerSample ├── AppDelegate.h ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── BounceAnimationController.h ├── BounceAnimationController.m ├── FirstViewController.h ├── FirstViewController.m ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── RoundRectPresentationController.h ├── RoundRectPresentationController.m ├── SecondViewController.h ├── SecondViewController.m └── main.m ├── PresentationControllerSampleTests ├── Info.plist └── PresentationControllerSampleTests.m ├── README.md └── sapmle.gif /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | # Pods/ 27 | -------------------------------------------------------------------------------- /PresentationControllerSample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | CB316C7F19E5293F0045F067 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CB316C7E19E5293F0045F067 /* main.m */; }; 11 | CB316C8219E5293F0045F067 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CB316C8119E5293F0045F067 /* AppDelegate.m */; }; 12 | CB316C8519E5293F0045F067 /* FirstViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CB316C8419E5293F0045F067 /* FirstViewController.m */; }; 13 | CB316C8819E5293F0045F067 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CB316C8619E5293F0045F067 /* Main.storyboard */; }; 14 | CB316C8A19E5293F0045F067 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CB316C8919E5293F0045F067 /* Images.xcassets */; }; 15 | CB316C8D19E5293F0045F067 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = CB316C8B19E5293F0045F067 /* LaunchScreen.xib */; }; 16 | CB316C9919E5293F0045F067 /* PresentationControllerSampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CB316C9819E5293F0045F067 /* PresentationControllerSampleTests.m */; }; 17 | CB316CA419E52C0D0045F067 /* SecondViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CB316CA319E52C0D0045F067 /* SecondViewController.m */; }; 18 | CB316CA719E52DBF0045F067 /* RoundRectPresentationController.m in Sources */ = {isa = PBXBuildFile; fileRef = CB316CA619E52DBF0045F067 /* RoundRectPresentationController.m */; }; 19 | CB316CAA19E576170045F067 /* BounceAnimationController.m in Sources */ = {isa = PBXBuildFile; fileRef = CB316CA919E576170045F067 /* BounceAnimationController.m */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | CB316C9319E5293F0045F067 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = CB316C7119E5293F0045F067 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = CB316C7819E5293F0045F067; 28 | remoteInfo = PresentationControllerSample; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | CB316C7919E5293F0045F067 /* PresentationControllerSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PresentationControllerSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | CB316C7D19E5293F0045F067 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | CB316C7E19E5293F0045F067 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 36 | CB316C8019E5293F0045F067 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 37 | CB316C8119E5293F0045F067 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 38 | CB316C8319E5293F0045F067 /* FirstViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FirstViewController.h; sourceTree = ""; }; 39 | CB316C8419E5293F0045F067 /* FirstViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FirstViewController.m; sourceTree = ""; }; 40 | CB316C8719E5293F0045F067 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 41 | CB316C8919E5293F0045F067 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 42 | CB316C8C19E5293F0045F067 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 43 | CB316C9219E5293F0045F067 /* PresentationControllerSampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PresentationControllerSampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | CB316C9719E5293F0045F067 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | CB316C9819E5293F0045F067 /* PresentationControllerSampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PresentationControllerSampleTests.m; sourceTree = ""; }; 46 | CB316CA219E52C0D0045F067 /* SecondViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecondViewController.h; sourceTree = ""; }; 47 | CB316CA319E52C0D0045F067 /* SecondViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SecondViewController.m; sourceTree = ""; }; 48 | CB316CA519E52DBF0045F067 /* RoundRectPresentationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RoundRectPresentationController.h; sourceTree = ""; }; 49 | CB316CA619E52DBF0045F067 /* RoundRectPresentationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RoundRectPresentationController.m; sourceTree = ""; }; 50 | CB316CA819E576170045F067 /* BounceAnimationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BounceAnimationController.h; sourceTree = ""; }; 51 | CB316CA919E576170045F067 /* BounceAnimationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BounceAnimationController.m; sourceTree = ""; }; 52 | /* End PBXFileReference section */ 53 | 54 | /* Begin PBXFrameworksBuildPhase section */ 55 | CB316C7619E5293F0045F067 /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | ); 60 | runOnlyForDeploymentPostprocessing = 0; 61 | }; 62 | CB316C8F19E5293F0045F067 /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | CB316C7019E5293F0045F067 = { 73 | isa = PBXGroup; 74 | children = ( 75 | CB316C7B19E5293F0045F067 /* PresentationControllerSample */, 76 | CB316C9519E5293F0045F067 /* PresentationControllerSampleTests */, 77 | CB316C7A19E5293F0045F067 /* Products */, 78 | ); 79 | sourceTree = ""; 80 | }; 81 | CB316C7A19E5293F0045F067 /* Products */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | CB316C7919E5293F0045F067 /* PresentationControllerSample.app */, 85 | CB316C9219E5293F0045F067 /* PresentationControllerSampleTests.xctest */, 86 | ); 87 | name = Products; 88 | sourceTree = ""; 89 | }; 90 | CB316C7B19E5293F0045F067 /* PresentationControllerSample */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | CB316C8019E5293F0045F067 /* AppDelegate.h */, 94 | CB316C8119E5293F0045F067 /* AppDelegate.m */, 95 | CB316C8319E5293F0045F067 /* FirstViewController.h */, 96 | CB316C8419E5293F0045F067 /* FirstViewController.m */, 97 | CB316C8619E5293F0045F067 /* Main.storyboard */, 98 | CB316C8919E5293F0045F067 /* Images.xcassets */, 99 | CB316C8B19E5293F0045F067 /* LaunchScreen.xib */, 100 | CB316C7C19E5293F0045F067 /* Supporting Files */, 101 | CB316CA219E52C0D0045F067 /* SecondViewController.h */, 102 | CB316CA319E52C0D0045F067 /* SecondViewController.m */, 103 | CB316CA519E52DBF0045F067 /* RoundRectPresentationController.h */, 104 | CB316CA619E52DBF0045F067 /* RoundRectPresentationController.m */, 105 | CB316CA819E576170045F067 /* BounceAnimationController.h */, 106 | CB316CA919E576170045F067 /* BounceAnimationController.m */, 107 | ); 108 | path = PresentationControllerSample; 109 | sourceTree = ""; 110 | }; 111 | CB316C7C19E5293F0045F067 /* Supporting Files */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | CB316C7D19E5293F0045F067 /* Info.plist */, 115 | CB316C7E19E5293F0045F067 /* main.m */, 116 | ); 117 | name = "Supporting Files"; 118 | sourceTree = ""; 119 | }; 120 | CB316C9519E5293F0045F067 /* PresentationControllerSampleTests */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | CB316C9819E5293F0045F067 /* PresentationControllerSampleTests.m */, 124 | CB316C9619E5293F0045F067 /* Supporting Files */, 125 | ); 126 | path = PresentationControllerSampleTests; 127 | sourceTree = ""; 128 | }; 129 | CB316C9619E5293F0045F067 /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | CB316C9719E5293F0045F067 /* Info.plist */, 133 | ); 134 | name = "Supporting Files"; 135 | sourceTree = ""; 136 | }; 137 | /* End PBXGroup section */ 138 | 139 | /* Begin PBXNativeTarget section */ 140 | CB316C7819E5293F0045F067 /* PresentationControllerSample */ = { 141 | isa = PBXNativeTarget; 142 | buildConfigurationList = CB316C9C19E5293F0045F067 /* Build configuration list for PBXNativeTarget "PresentationControllerSample" */; 143 | buildPhases = ( 144 | CB316C7519E5293F0045F067 /* Sources */, 145 | CB316C7619E5293F0045F067 /* Frameworks */, 146 | CB316C7719E5293F0045F067 /* Resources */, 147 | ); 148 | buildRules = ( 149 | ); 150 | dependencies = ( 151 | ); 152 | name = PresentationControllerSample; 153 | productName = PresentationControllerSample; 154 | productReference = CB316C7919E5293F0045F067 /* PresentationControllerSample.app */; 155 | productType = "com.apple.product-type.application"; 156 | }; 157 | CB316C9119E5293F0045F067 /* PresentationControllerSampleTests */ = { 158 | isa = PBXNativeTarget; 159 | buildConfigurationList = CB316C9F19E5293F0045F067 /* Build configuration list for PBXNativeTarget "PresentationControllerSampleTests" */; 160 | buildPhases = ( 161 | CB316C8E19E5293F0045F067 /* Sources */, 162 | CB316C8F19E5293F0045F067 /* Frameworks */, 163 | CB316C9019E5293F0045F067 /* Resources */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | CB316C9419E5293F0045F067 /* PBXTargetDependency */, 169 | ); 170 | name = PresentationControllerSampleTests; 171 | productName = PresentationControllerSampleTests; 172 | productReference = CB316C9219E5293F0045F067 /* PresentationControllerSampleTests.xctest */; 173 | productType = "com.apple.product-type.bundle.unit-test"; 174 | }; 175 | /* End PBXNativeTarget section */ 176 | 177 | /* Begin PBXProject section */ 178 | CB316C7119E5293F0045F067 /* Project object */ = { 179 | isa = PBXProject; 180 | attributes = { 181 | LastUpgradeCheck = 0600; 182 | ORGANIZATIONNAME = bricklife.com; 183 | TargetAttributes = { 184 | CB316C7819E5293F0045F067 = { 185 | CreatedOnToolsVersion = 6.0.1; 186 | DevelopmentTeam = 7M9GM9UG2W; 187 | }; 188 | CB316C9119E5293F0045F067 = { 189 | CreatedOnToolsVersion = 6.0.1; 190 | TestTargetID = CB316C7819E5293F0045F067; 191 | }; 192 | }; 193 | }; 194 | buildConfigurationList = CB316C7419E5293F0045F067 /* Build configuration list for PBXProject "PresentationControllerSample" */; 195 | compatibilityVersion = "Xcode 3.2"; 196 | developmentRegion = English; 197 | hasScannedForEncodings = 0; 198 | knownRegions = ( 199 | en, 200 | Base, 201 | ); 202 | mainGroup = CB316C7019E5293F0045F067; 203 | productRefGroup = CB316C7A19E5293F0045F067 /* Products */; 204 | projectDirPath = ""; 205 | projectRoot = ""; 206 | targets = ( 207 | CB316C7819E5293F0045F067 /* PresentationControllerSample */, 208 | CB316C9119E5293F0045F067 /* PresentationControllerSampleTests */, 209 | ); 210 | }; 211 | /* End PBXProject section */ 212 | 213 | /* Begin PBXResourcesBuildPhase section */ 214 | CB316C7719E5293F0045F067 /* Resources */ = { 215 | isa = PBXResourcesBuildPhase; 216 | buildActionMask = 2147483647; 217 | files = ( 218 | CB316C8819E5293F0045F067 /* Main.storyboard in Resources */, 219 | CB316C8D19E5293F0045F067 /* LaunchScreen.xib in Resources */, 220 | CB316C8A19E5293F0045F067 /* Images.xcassets in Resources */, 221 | ); 222 | runOnlyForDeploymentPostprocessing = 0; 223 | }; 224 | CB316C9019E5293F0045F067 /* Resources */ = { 225 | isa = PBXResourcesBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | }; 231 | /* End PBXResourcesBuildPhase section */ 232 | 233 | /* Begin PBXSourcesBuildPhase section */ 234 | CB316C7519E5293F0045F067 /* Sources */ = { 235 | isa = PBXSourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | CB316CA419E52C0D0045F067 /* SecondViewController.m in Sources */, 239 | CB316C8519E5293F0045F067 /* FirstViewController.m in Sources */, 240 | CB316C8219E5293F0045F067 /* AppDelegate.m in Sources */, 241 | CB316CA719E52DBF0045F067 /* RoundRectPresentationController.m in Sources */, 242 | CB316CAA19E576170045F067 /* BounceAnimationController.m in Sources */, 243 | CB316C7F19E5293F0045F067 /* main.m in Sources */, 244 | ); 245 | runOnlyForDeploymentPostprocessing = 0; 246 | }; 247 | CB316C8E19E5293F0045F067 /* Sources */ = { 248 | isa = PBXSourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | CB316C9919E5293F0045F067 /* PresentationControllerSampleTests.m in Sources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | /* End PBXSourcesBuildPhase section */ 256 | 257 | /* Begin PBXTargetDependency section */ 258 | CB316C9419E5293F0045F067 /* PBXTargetDependency */ = { 259 | isa = PBXTargetDependency; 260 | target = CB316C7819E5293F0045F067 /* PresentationControllerSample */; 261 | targetProxy = CB316C9319E5293F0045F067 /* PBXContainerItemProxy */; 262 | }; 263 | /* End PBXTargetDependency section */ 264 | 265 | /* Begin PBXVariantGroup section */ 266 | CB316C8619E5293F0045F067 /* Main.storyboard */ = { 267 | isa = PBXVariantGroup; 268 | children = ( 269 | CB316C8719E5293F0045F067 /* Base */, 270 | ); 271 | name = Main.storyboard; 272 | sourceTree = ""; 273 | }; 274 | CB316C8B19E5293F0045F067 /* LaunchScreen.xib */ = { 275 | isa = PBXVariantGroup; 276 | children = ( 277 | CB316C8C19E5293F0045F067 /* Base */, 278 | ); 279 | name = LaunchScreen.xib; 280 | sourceTree = ""; 281 | }; 282 | /* End PBXVariantGroup section */ 283 | 284 | /* Begin XCBuildConfiguration section */ 285 | CB316C9A19E5293F0045F067 /* Debug */ = { 286 | isa = XCBuildConfiguration; 287 | buildSettings = { 288 | ALWAYS_SEARCH_USER_PATHS = NO; 289 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 290 | CLANG_CXX_LIBRARY = "libc++"; 291 | CLANG_ENABLE_MODULES = YES; 292 | CLANG_ENABLE_OBJC_ARC = YES; 293 | CLANG_WARN_BOOL_CONVERSION = YES; 294 | CLANG_WARN_CONSTANT_CONVERSION = YES; 295 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 296 | CLANG_WARN_EMPTY_BODY = YES; 297 | CLANG_WARN_ENUM_CONVERSION = YES; 298 | CLANG_WARN_INT_CONVERSION = YES; 299 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 300 | CLANG_WARN_UNREACHABLE_CODE = YES; 301 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 302 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 303 | COPY_PHASE_STRIP = NO; 304 | ENABLE_STRICT_OBJC_MSGSEND = YES; 305 | GCC_C_LANGUAGE_STANDARD = gnu99; 306 | GCC_DYNAMIC_NO_PIC = NO; 307 | GCC_OPTIMIZATION_LEVEL = 0; 308 | GCC_PREPROCESSOR_DEFINITIONS = ( 309 | "DEBUG=1", 310 | "$(inherited)", 311 | ); 312 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 313 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 314 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 315 | GCC_WARN_UNDECLARED_SELECTOR = YES; 316 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 317 | GCC_WARN_UNUSED_FUNCTION = YES; 318 | GCC_WARN_UNUSED_VARIABLE = YES; 319 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 320 | MTL_ENABLE_DEBUG_INFO = YES; 321 | ONLY_ACTIVE_ARCH = YES; 322 | SDKROOT = iphoneos; 323 | TARGETED_DEVICE_FAMILY = "1,2"; 324 | }; 325 | name = Debug; 326 | }; 327 | CB316C9B19E5293F0045F067 /* Release */ = { 328 | isa = XCBuildConfiguration; 329 | buildSettings = { 330 | ALWAYS_SEARCH_USER_PATHS = NO; 331 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 332 | CLANG_CXX_LIBRARY = "libc++"; 333 | CLANG_ENABLE_MODULES = YES; 334 | CLANG_ENABLE_OBJC_ARC = YES; 335 | CLANG_WARN_BOOL_CONVERSION = YES; 336 | CLANG_WARN_CONSTANT_CONVERSION = YES; 337 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 338 | CLANG_WARN_EMPTY_BODY = YES; 339 | CLANG_WARN_ENUM_CONVERSION = YES; 340 | CLANG_WARN_INT_CONVERSION = YES; 341 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 342 | CLANG_WARN_UNREACHABLE_CODE = YES; 343 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 344 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 345 | COPY_PHASE_STRIP = YES; 346 | ENABLE_NS_ASSERTIONS = NO; 347 | ENABLE_STRICT_OBJC_MSGSEND = YES; 348 | GCC_C_LANGUAGE_STANDARD = gnu99; 349 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 350 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 351 | GCC_WARN_UNDECLARED_SELECTOR = YES; 352 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 353 | GCC_WARN_UNUSED_FUNCTION = YES; 354 | GCC_WARN_UNUSED_VARIABLE = YES; 355 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 356 | MTL_ENABLE_DEBUG_INFO = NO; 357 | SDKROOT = iphoneos; 358 | TARGETED_DEVICE_FAMILY = "1,2"; 359 | VALIDATE_PRODUCT = YES; 360 | }; 361 | name = Release; 362 | }; 363 | CB316C9D19E5293F0045F067 /* Debug */ = { 364 | isa = XCBuildConfiguration; 365 | buildSettings = { 366 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 367 | CODE_SIGN_IDENTITY = "iPhone Developer"; 368 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 369 | INFOPLIST_FILE = PresentationControllerSample/Info.plist; 370 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | PROVISIONING_PROFILE = ""; 373 | }; 374 | name = Debug; 375 | }; 376 | CB316C9E19E5293F0045F067 /* Release */ = { 377 | isa = XCBuildConfiguration; 378 | buildSettings = { 379 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 380 | CODE_SIGN_IDENTITY = "iPhone Developer"; 381 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 382 | INFOPLIST_FILE = PresentationControllerSample/Info.plist; 383 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 384 | PRODUCT_NAME = "$(TARGET_NAME)"; 385 | PROVISIONING_PROFILE = ""; 386 | }; 387 | name = Release; 388 | }; 389 | CB316CA019E5293F0045F067 /* Debug */ = { 390 | isa = XCBuildConfiguration; 391 | buildSettings = { 392 | BUNDLE_LOADER = "$(TEST_HOST)"; 393 | FRAMEWORK_SEARCH_PATHS = ( 394 | "$(SDKROOT)/Developer/Library/Frameworks", 395 | "$(inherited)", 396 | ); 397 | GCC_PREPROCESSOR_DEFINITIONS = ( 398 | "DEBUG=1", 399 | "$(inherited)", 400 | ); 401 | INFOPLIST_FILE = PresentationControllerSampleTests/Info.plist; 402 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 403 | PRODUCT_NAME = "$(TARGET_NAME)"; 404 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PresentationControllerSample.app/PresentationControllerSample"; 405 | }; 406 | name = Debug; 407 | }; 408 | CB316CA119E5293F0045F067 /* Release */ = { 409 | isa = XCBuildConfiguration; 410 | buildSettings = { 411 | BUNDLE_LOADER = "$(TEST_HOST)"; 412 | FRAMEWORK_SEARCH_PATHS = ( 413 | "$(SDKROOT)/Developer/Library/Frameworks", 414 | "$(inherited)", 415 | ); 416 | INFOPLIST_FILE = PresentationControllerSampleTests/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 418 | PRODUCT_NAME = "$(TARGET_NAME)"; 419 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PresentationControllerSample.app/PresentationControllerSample"; 420 | }; 421 | name = Release; 422 | }; 423 | /* End XCBuildConfiguration section */ 424 | 425 | /* Begin XCConfigurationList section */ 426 | CB316C7419E5293F0045F067 /* Build configuration list for PBXProject "PresentationControllerSample" */ = { 427 | isa = XCConfigurationList; 428 | buildConfigurations = ( 429 | CB316C9A19E5293F0045F067 /* Debug */, 430 | CB316C9B19E5293F0045F067 /* Release */, 431 | ); 432 | defaultConfigurationIsVisible = 0; 433 | defaultConfigurationName = Release; 434 | }; 435 | CB316C9C19E5293F0045F067 /* Build configuration list for PBXNativeTarget "PresentationControllerSample" */ = { 436 | isa = XCConfigurationList; 437 | buildConfigurations = ( 438 | CB316C9D19E5293F0045F067 /* Debug */, 439 | CB316C9E19E5293F0045F067 /* Release */, 440 | ); 441 | defaultConfigurationIsVisible = 0; 442 | defaultConfigurationName = Release; 443 | }; 444 | CB316C9F19E5293F0045F067 /* Build configuration list for PBXNativeTarget "PresentationControllerSampleTests" */ = { 445 | isa = XCConfigurationList; 446 | buildConfigurations = ( 447 | CB316CA019E5293F0045F067 /* Debug */, 448 | CB316CA119E5293F0045F067 /* Release */, 449 | ); 450 | defaultConfigurationIsVisible = 0; 451 | defaultConfigurationName = Release; 452 | }; 453 | /* End XCConfigurationList section */ 454 | }; 455 | rootObject = CB316C7119E5293F0045F067 /* Project object */; 456 | } 457 | -------------------------------------------------------------------------------- /PresentationControllerSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PresentationControllerSample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | 17 | -------------------------------------------------------------------------------- /PresentationControllerSample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // 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. 25 | // 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. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // 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. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // 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. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /PresentationControllerSample/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /PresentationControllerSample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /PresentationControllerSample/BounceAnimationController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BounceAnimationController.h 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BounceAnimationController : NSObject 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /PresentationControllerSample/BounceAnimationController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BounceAnimationController.m 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import "BounceAnimationController.h" 10 | 11 | @implementation BounceAnimationController 12 | 13 | - (NSTimeInterval)transitionDuration:(id )transitionContext { 14 | return 0.8; 15 | } 16 | 17 | - (void)animateTransition:(id )transitionContext { 18 | UIView *containerView = [transitionContext containerView]; 19 | UIView *presentedView = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey].view; 20 | 21 | presentedView.frame = containerView.bounds; 22 | [containerView addSubview:presentedView]; 23 | 24 | CGAffineTransform transform = presentedView.transform; 25 | presentedView.transform = CGAffineTransformTranslate(transform, 0, -containerView.bounds.size.height); 26 | 27 | [UIView animateWithDuration:[self transitionDuration:transitionContext] 28 | delay:0 29 | usingSpringWithDamping:0.6 30 | initialSpringVelocity:10 31 | options:0 32 | animations:^{ 33 | presentedView.transform = transform; 34 | } completion:^(BOOL finished) { 35 | [transitionContext completeTransition:YES]; 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /PresentationControllerSample/FirstViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FirstViewController.h 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FirstViewController : UIViewController 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /PresentationControllerSample/FirstViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FirstViewController.m 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import "FirstViewController.h" 10 | 11 | @interface FirstViewController () 12 | 13 | @end 14 | 15 | @implementation FirstViewController 16 | 17 | - (void)viewDidLoad { 18 | [super viewDidLoad]; 19 | // Do any additional setup after loading the view, typically from a nib. 20 | } 21 | 22 | - (void)didReceiveMemoryWarning { 23 | [super didReceiveMemoryWarning]; 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | - (IBAction)close:(UIStoryboardSegue *)segue { 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /PresentationControllerSample/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /PresentationControllerSample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.bricklife.ios.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | UIInterfaceOrientationPortraitUpsideDown 39 | 40 | UISupportedInterfaceOrientations~ipad 41 | 42 | UIInterfaceOrientationPortrait 43 | UIInterfaceOrientationPortraitUpsideDown 44 | UIInterfaceOrientationLandscapeLeft 45 | UIInterfaceOrientationLandscapeRight 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /PresentationControllerSample/RoundRectPresentationController.h: -------------------------------------------------------------------------------- 1 | // 2 | // RoundRectPresentationController.h 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface RoundRectPresentationController : UIPresentationController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /PresentationControllerSample/RoundRectPresentationController.m: -------------------------------------------------------------------------------- 1 | // 2 | // RoundRectPresentationController.m 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import "RoundRectPresentationController.h" 10 | 11 | @interface RoundRectPresentationController () 12 | 13 | @property (nonatomic, readonly) UIView *dimmingView; 14 | 15 | @end 16 | 17 | @implementation RoundRectPresentationController 18 | 19 | - (UIView *)dimmingView { 20 | static UIView *instance = nil; 21 | if (instance == nil) { 22 | instance = [[UIView alloc] initWithFrame:self.containerView.bounds]; 23 | instance.backgroundColor = [UIColor colorWithWhite:0 alpha:0.2]; 24 | } 25 | return instance; 26 | } 27 | 28 | - (void)presentationTransitionWillBegin { 29 | UIView *presentedView = self.presentedViewController.view; 30 | presentedView.layer.cornerRadius = 20.f; 31 | presentedView.layer.shadowColor = [[UIColor blackColor] CGColor]; 32 | presentedView.layer.shadowOffset = CGSizeMake(0, 10); 33 | presentedView.layer.shadowRadius = 10; 34 | presentedView.layer.shadowOpacity = 0.5; 35 | 36 | self.dimmingView.frame = self.containerView.bounds; 37 | self.dimmingView.alpha = 0; 38 | [self.containerView addSubview:self.dimmingView]; 39 | 40 | [self.presentedViewController.transitionCoordinator animateAlongsideTransition:^(id context) { 41 | self.dimmingView.alpha = 1; 42 | } completion:nil]; 43 | } 44 | 45 | - (void)presentationTransitionDidEnd:(BOOL)completed { 46 | if (!completed) { 47 | [self.dimmingView removeFromSuperview]; 48 | } 49 | } 50 | 51 | - (void)dismissalTransitionWillBegin { 52 | [self.presentedViewController.transitionCoordinator animateAlongsideTransition:^(id context) { 53 | self.dimmingView.alpha = 0; 54 | } completion:nil]; 55 | } 56 | 57 | - (void)dismissalTransitionDidEnd:(BOOL)completed { 58 | if (completed) { 59 | [self.dimmingView removeFromSuperview]; 60 | } 61 | } 62 | 63 | - (CGRect)frameOfPresentedViewInContainerView { 64 | CGFloat size = 280; 65 | CGRect frame = CGRectMake((self.containerView.frame.size.width - size) / 2, 66 | (self.containerView.frame.size.height - size) / 2, 67 | size, size); 68 | return frame; 69 | } 70 | 71 | - (void)containerViewWillLayoutSubviews { 72 | self.dimmingView.frame = self.containerView.bounds; 73 | self.presentedView.frame = [self frameOfPresentedViewInContainerView]; 74 | } 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /PresentationControllerSample/SecondViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecondViewController.h 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface SecondViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /PresentationControllerSample/SecondViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SecondViewController.m 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import "SecondViewController.h" 10 | 11 | #import "BounceAnimationController.h" 12 | #import "RoundRectPresentationController.h" 13 | 14 | @interface SecondViewController () 15 | 16 | @end 17 | 18 | @implementation SecondViewController 19 | 20 | - (instancetype)initWithCoder:(NSCoder *)aDecoder { 21 | self = [super initWithCoder:aDecoder]; 22 | if (self) { 23 | if ([self respondsToSelector:@selector(setTransitioningDelegate:)]) { 24 | self.modalPresentationStyle = UIModalPresentationCustom; 25 | self.transitioningDelegate = self; 26 | } 27 | } 28 | return self; 29 | } 30 | 31 | - (void)viewDidLoad { 32 | [super viewDidLoad]; 33 | // Do any additional setup after loading the view. 34 | } 35 | 36 | - (void)didReceiveMemoryWarning { 37 | [super didReceiveMemoryWarning]; 38 | // Dispose of any resources that can be recreated. 39 | } 40 | 41 | #pragma mark - UIViewControllerTransitioningDelegate 42 | 43 | - (id )animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source { 44 | return [[BounceAnimationController alloc] init]; 45 | } 46 | 47 | - (UIPresentationController *)presentationControllerForPresentedViewController:(UIViewController *)presented presentingViewController:(UIViewController *)presenting sourceViewController:(UIViewController *)source { 48 | return [[RoundRectPresentationController alloc] initWithPresentedViewController:presented presentingViewController:presenting]; 49 | } 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /PresentationControllerSample/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // PresentationControllerSample 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /PresentationControllerSampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.bricklife.ios.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PresentationControllerSampleTests/PresentationControllerSampleTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // PresentationControllerSampleTests.m 3 | // PresentationControllerSampleTests 4 | // 5 | // Created by Shinichiro Oba on 2014/10/08. 6 | // Copyright (c) 2014年 bricklife.com. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface PresentationControllerSampleTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation PresentationControllerSampleTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | PresentationControllerSample 2 | ============================ 3 | 4 | a sample of UIPresentationController 5 | 6 | ![Sample](https://raw.githubusercontent.com/bricklife/PresentationControllerSample/master/sapmle.gif) 7 | 8 | see also: 9 | * https://github.com/ShinobiControls/iOS8-day-by-day/tree/master/24-presentation-controllers 10 | * https://github.com/PeteC/PresentationControllers 11 | -------------------------------------------------------------------------------- /sapmle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bricklife/PresentationControllerSample/d12baacef96d910e35db14132f8f91e11fcfb9b5/sapmle.gif --------------------------------------------------------------------------------