├── CustomCollectionViewTransition.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── enginkurutepe.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── enginkurutepe.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── CustomCollectionViewTransition.xcscheme │ └── xcschememanagement.plist ├── CustomCollectionViewTransition ├── CustomCollectionViewTransition-Info.plist ├── CustomCollectionViewTransition-Prefix.pch ├── FJAppDelegate.h ├── FJAppDelegate.m ├── FJCollectionDataSource.h ├── FJCollectionDataSource.m ├── FJContainerCell.h ├── FJContainerCell.m ├── FJDetailViewController.h ├── FJDetailViewController.m ├── FJLineToGridAnimator.h ├── FJLineToGridAnimator.m ├── FJRootViewController.h ├── FJRootViewController.m ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── Storyboard.storyboard ├── en.lproj │ └── InfoPlist.strings └── main.m ├── CustomCollectionViewTransitionTests ├── CustomCollectionViewTransitionTests-Info.plist ├── CustomCollectionViewTransitionTests.m └── en.lproj │ └── InfoPlist.strings └── README.md /CustomCollectionViewTransition.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 51E35C451912A8FE0022177F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51E35C441912A8FE0022177F /* Foundation.framework */; }; 11 | 51E35C471912A8FE0022177F /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51E35C461912A8FE0022177F /* CoreGraphics.framework */; }; 12 | 51E35C491912A8FE0022177F /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51E35C481912A8FE0022177F /* UIKit.framework */; }; 13 | 51E35C4F1912A8FE0022177F /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 51E35C4D1912A8FE0022177F /* InfoPlist.strings */; }; 14 | 51E35C511912A8FE0022177F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E35C501912A8FE0022177F /* main.m */; }; 15 | 51E35C551912A8FE0022177F /* FJAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E35C541912A8FE0022177F /* FJAppDelegate.m */; }; 16 | 51E35C571912A8FE0022177F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 51E35C561912A8FE0022177F /* Images.xcassets */; }; 17 | 51E35C5E1912A8FE0022177F /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51E35C5D1912A8FE0022177F /* XCTest.framework */; }; 18 | 51E35C5F1912A8FE0022177F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51E35C441912A8FE0022177F /* Foundation.framework */; }; 19 | 51E35C601912A8FE0022177F /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 51E35C481912A8FE0022177F /* UIKit.framework */; }; 20 | 51E35C681912A8FE0022177F /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 51E35C661912A8FE0022177F /* InfoPlist.strings */; }; 21 | 51E35C6A1912A8FE0022177F /* CustomCollectionViewTransitionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E35C691912A8FE0022177F /* CustomCollectionViewTransitionTests.m */; }; 22 | 51E35C761912A9220022177F /* FJRootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E35C751912A9220022177F /* FJRootViewController.m */; }; 23 | 51E35C791912A92E0022177F /* FJDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E35C781912A92E0022177F /* FJDetailViewController.m */; }; 24 | 51E35C7B1912A9430022177F /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 51E35C7A1912A9430022177F /* Storyboard.storyboard */; }; 25 | 51E35C7F1912AB470022177F /* FJCollectionDataSource.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E35C7E1912AB470022177F /* FJCollectionDataSource.m */; }; 26 | 51E35C821912B2380022177F /* FJLineToGridAnimator.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E35C811912B2380022177F /* FJLineToGridAnimator.m */; }; 27 | 51E35C871912EA170022177F /* FJContainerCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 51E35C861912EA170022177F /* FJContainerCell.m */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 51E35C611912A8FE0022177F /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = 51E35C391912A8FE0022177F /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 51E35C401912A8FE0022177F; 36 | remoteInfo = CustomCollectionViewTransition; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 51E35C411912A8FE0022177F /* CustomCollectionViewTransition.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomCollectionViewTransition.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 51E35C441912A8FE0022177F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 43 | 51E35C461912A8FE0022177F /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 44 | 51E35C481912A8FE0022177F /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 45 | 51E35C4C1912A8FE0022177F /* CustomCollectionViewTransition-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CustomCollectionViewTransition-Info.plist"; sourceTree = ""; }; 46 | 51E35C4E1912A8FE0022177F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 47 | 51E35C501912A8FE0022177F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 48 | 51E35C521912A8FE0022177F /* CustomCollectionViewTransition-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CustomCollectionViewTransition-Prefix.pch"; sourceTree = ""; }; 49 | 51E35C531912A8FE0022177F /* FJAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FJAppDelegate.h; sourceTree = ""; }; 50 | 51E35C541912A8FE0022177F /* FJAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FJAppDelegate.m; sourceTree = ""; }; 51 | 51E35C561912A8FE0022177F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 52 | 51E35C5C1912A8FE0022177F /* CustomCollectionViewTransitionTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CustomCollectionViewTransitionTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 51E35C5D1912A8FE0022177F /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 54 | 51E35C651912A8FE0022177F /* CustomCollectionViewTransitionTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CustomCollectionViewTransitionTests-Info.plist"; sourceTree = ""; }; 55 | 51E35C671912A8FE0022177F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 56 | 51E35C691912A8FE0022177F /* CustomCollectionViewTransitionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CustomCollectionViewTransitionTests.m; sourceTree = ""; }; 57 | 51E35C741912A9220022177F /* FJRootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FJRootViewController.h; sourceTree = ""; }; 58 | 51E35C751912A9220022177F /* FJRootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FJRootViewController.m; sourceTree = ""; }; 59 | 51E35C771912A92E0022177F /* FJDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FJDetailViewController.h; sourceTree = ""; }; 60 | 51E35C781912A92E0022177F /* FJDetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FJDetailViewController.m; sourceTree = ""; }; 61 | 51E35C7A1912A9430022177F /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = ""; }; 62 | 51E35C7D1912AB470022177F /* FJCollectionDataSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FJCollectionDataSource.h; sourceTree = ""; }; 63 | 51E35C7E1912AB470022177F /* FJCollectionDataSource.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FJCollectionDataSource.m; sourceTree = ""; }; 64 | 51E35C801912B2380022177F /* FJLineToGridAnimator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FJLineToGridAnimator.h; sourceTree = ""; }; 65 | 51E35C811912B2380022177F /* FJLineToGridAnimator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FJLineToGridAnimator.m; sourceTree = ""; }; 66 | 51E35C851912EA170022177F /* FJContainerCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FJContainerCell.h; sourceTree = ""; }; 67 | 51E35C861912EA170022177F /* FJContainerCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FJContainerCell.m; sourceTree = ""; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 51E35C3E1912A8FE0022177F /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 51E35C471912A8FE0022177F /* CoreGraphics.framework in Frameworks */, 76 | 51E35C491912A8FE0022177F /* UIKit.framework in Frameworks */, 77 | 51E35C451912A8FE0022177F /* Foundation.framework in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | 51E35C591912A8FE0022177F /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | 51E35C5E1912A8FE0022177F /* XCTest.framework in Frameworks */, 86 | 51E35C601912A8FE0022177F /* UIKit.framework in Frameworks */, 87 | 51E35C5F1912A8FE0022177F /* Foundation.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | /* End PBXFrameworksBuildPhase section */ 92 | 93 | /* Begin PBXGroup section */ 94 | 51E35C381912A8FE0022177F = { 95 | isa = PBXGroup; 96 | children = ( 97 | 51E35C4A1912A8FE0022177F /* CustomCollectionViewTransition */, 98 | 51E35C631912A8FE0022177F /* CustomCollectionViewTransitionTests */, 99 | 51E35C431912A8FE0022177F /* Frameworks */, 100 | 51E35C421912A8FE0022177F /* Products */, 101 | ); 102 | sourceTree = ""; 103 | }; 104 | 51E35C421912A8FE0022177F /* Products */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 51E35C411912A8FE0022177F /* CustomCollectionViewTransition.app */, 108 | 51E35C5C1912A8FE0022177F /* CustomCollectionViewTransitionTests.xctest */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 51E35C431912A8FE0022177F /* Frameworks */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 51E35C441912A8FE0022177F /* Foundation.framework */, 117 | 51E35C461912A8FE0022177F /* CoreGraphics.framework */, 118 | 51E35C481912A8FE0022177F /* UIKit.framework */, 119 | 51E35C5D1912A8FE0022177F /* XCTest.framework */, 120 | ); 121 | name = Frameworks; 122 | sourceTree = ""; 123 | }; 124 | 51E35C4A1912A8FE0022177F /* CustomCollectionViewTransition */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 51E35C841912EA050022177F /* Custom Views */, 128 | 51E35C831912E9F70022177F /* Animators */, 129 | 51E35C731912A9150022177F /* Controllers */, 130 | 51E35C531912A8FE0022177F /* FJAppDelegate.h */, 131 | 51E35C541912A8FE0022177F /* FJAppDelegate.m */, 132 | 51E35C561912A8FE0022177F /* Images.xcassets */, 133 | 51E35C4B1912A8FE0022177F /* Supporting Files */, 134 | 51E35C7D1912AB470022177F /* FJCollectionDataSource.h */, 135 | 51E35C7E1912AB470022177F /* FJCollectionDataSource.m */, 136 | ); 137 | path = CustomCollectionViewTransition; 138 | sourceTree = ""; 139 | }; 140 | 51E35C4B1912A8FE0022177F /* Supporting Files */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 51E35C4C1912A8FE0022177F /* CustomCollectionViewTransition-Info.plist */, 144 | 51E35C4D1912A8FE0022177F /* InfoPlist.strings */, 145 | 51E35C501912A8FE0022177F /* main.m */, 146 | 51E35C521912A8FE0022177F /* CustomCollectionViewTransition-Prefix.pch */, 147 | ); 148 | name = "Supporting Files"; 149 | sourceTree = ""; 150 | }; 151 | 51E35C631912A8FE0022177F /* CustomCollectionViewTransitionTests */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 51E35C691912A8FE0022177F /* CustomCollectionViewTransitionTests.m */, 155 | 51E35C641912A8FE0022177F /* Supporting Files */, 156 | ); 157 | path = CustomCollectionViewTransitionTests; 158 | sourceTree = ""; 159 | }; 160 | 51E35C641912A8FE0022177F /* Supporting Files */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 51E35C651912A8FE0022177F /* CustomCollectionViewTransitionTests-Info.plist */, 164 | 51E35C661912A8FE0022177F /* InfoPlist.strings */, 165 | ); 166 | name = "Supporting Files"; 167 | sourceTree = ""; 168 | }; 169 | 51E35C731912A9150022177F /* Controllers */ = { 170 | isa = PBXGroup; 171 | children = ( 172 | 51E35C741912A9220022177F /* FJRootViewController.h */, 173 | 51E35C751912A9220022177F /* FJRootViewController.m */, 174 | 51E35C771912A92E0022177F /* FJDetailViewController.h */, 175 | 51E35C781912A92E0022177F /* FJDetailViewController.m */, 176 | 51E35C7A1912A9430022177F /* Storyboard.storyboard */, 177 | ); 178 | name = Controllers; 179 | sourceTree = ""; 180 | }; 181 | 51E35C831912E9F70022177F /* Animators */ = { 182 | isa = PBXGroup; 183 | children = ( 184 | 51E35C801912B2380022177F /* FJLineToGridAnimator.h */, 185 | 51E35C811912B2380022177F /* FJLineToGridAnimator.m */, 186 | ); 187 | name = Animators; 188 | sourceTree = ""; 189 | }; 190 | 51E35C841912EA050022177F /* Custom Views */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | 51E35C851912EA170022177F /* FJContainerCell.h */, 194 | 51E35C861912EA170022177F /* FJContainerCell.m */, 195 | ); 196 | name = "Custom Views"; 197 | sourceTree = ""; 198 | }; 199 | /* End PBXGroup section */ 200 | 201 | /* Begin PBXNativeTarget section */ 202 | 51E35C401912A8FE0022177F /* CustomCollectionViewTransition */ = { 203 | isa = PBXNativeTarget; 204 | buildConfigurationList = 51E35C6D1912A8FE0022177F /* Build configuration list for PBXNativeTarget "CustomCollectionViewTransition" */; 205 | buildPhases = ( 206 | 51E35C3D1912A8FE0022177F /* Sources */, 207 | 51E35C3E1912A8FE0022177F /* Frameworks */, 208 | 51E35C3F1912A8FE0022177F /* Resources */, 209 | ); 210 | buildRules = ( 211 | ); 212 | dependencies = ( 213 | ); 214 | name = CustomCollectionViewTransition; 215 | productName = CustomCollectionViewTransition; 216 | productReference = 51E35C411912A8FE0022177F /* CustomCollectionViewTransition.app */; 217 | productType = "com.apple.product-type.application"; 218 | }; 219 | 51E35C5B1912A8FE0022177F /* CustomCollectionViewTransitionTests */ = { 220 | isa = PBXNativeTarget; 221 | buildConfigurationList = 51E35C701912A8FE0022177F /* Build configuration list for PBXNativeTarget "CustomCollectionViewTransitionTests" */; 222 | buildPhases = ( 223 | 51E35C581912A8FE0022177F /* Sources */, 224 | 51E35C591912A8FE0022177F /* Frameworks */, 225 | 51E35C5A1912A8FE0022177F /* Resources */, 226 | ); 227 | buildRules = ( 228 | ); 229 | dependencies = ( 230 | 51E35C621912A8FE0022177F /* PBXTargetDependency */, 231 | ); 232 | name = CustomCollectionViewTransitionTests; 233 | productName = CustomCollectionViewTransitionTests; 234 | productReference = 51E35C5C1912A8FE0022177F /* CustomCollectionViewTransitionTests.xctest */; 235 | productType = "com.apple.product-type.bundle.unit-test"; 236 | }; 237 | /* End PBXNativeTarget section */ 238 | 239 | /* Begin PBXProject section */ 240 | 51E35C391912A8FE0022177F /* Project object */ = { 241 | isa = PBXProject; 242 | attributes = { 243 | CLASSPREFIX = FJ; 244 | LastUpgradeCheck = 0510; 245 | ORGANIZATIONNAME = "Fifteen Jugglers Software"; 246 | TargetAttributes = { 247 | 51E35C5B1912A8FE0022177F = { 248 | TestTargetID = 51E35C401912A8FE0022177F; 249 | }; 250 | }; 251 | }; 252 | buildConfigurationList = 51E35C3C1912A8FE0022177F /* Build configuration list for PBXProject "CustomCollectionViewTransition" */; 253 | compatibilityVersion = "Xcode 3.2"; 254 | developmentRegion = English; 255 | hasScannedForEncodings = 0; 256 | knownRegions = ( 257 | en, 258 | ); 259 | mainGroup = 51E35C381912A8FE0022177F; 260 | productRefGroup = 51E35C421912A8FE0022177F /* Products */; 261 | projectDirPath = ""; 262 | projectRoot = ""; 263 | targets = ( 264 | 51E35C401912A8FE0022177F /* CustomCollectionViewTransition */, 265 | 51E35C5B1912A8FE0022177F /* CustomCollectionViewTransitionTests */, 266 | ); 267 | }; 268 | /* End PBXProject section */ 269 | 270 | /* Begin PBXResourcesBuildPhase section */ 271 | 51E35C3F1912A8FE0022177F /* Resources */ = { 272 | isa = PBXResourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 51E35C4F1912A8FE0022177F /* InfoPlist.strings in Resources */, 276 | 51E35C571912A8FE0022177F /* Images.xcassets in Resources */, 277 | 51E35C7B1912A9430022177F /* Storyboard.storyboard in Resources */, 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | 51E35C5A1912A8FE0022177F /* Resources */ = { 282 | isa = PBXResourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | 51E35C681912A8FE0022177F /* InfoPlist.strings in Resources */, 286 | ); 287 | runOnlyForDeploymentPostprocessing = 0; 288 | }; 289 | /* End PBXResourcesBuildPhase section */ 290 | 291 | /* Begin PBXSourcesBuildPhase section */ 292 | 51E35C3D1912A8FE0022177F /* Sources */ = { 293 | isa = PBXSourcesBuildPhase; 294 | buildActionMask = 2147483647; 295 | files = ( 296 | 51E35C551912A8FE0022177F /* FJAppDelegate.m in Sources */, 297 | 51E35C821912B2380022177F /* FJLineToGridAnimator.m in Sources */, 298 | 51E35C7F1912AB470022177F /* FJCollectionDataSource.m in Sources */, 299 | 51E35C791912A92E0022177F /* FJDetailViewController.m in Sources */, 300 | 51E35C871912EA170022177F /* FJContainerCell.m in Sources */, 301 | 51E35C511912A8FE0022177F /* main.m in Sources */, 302 | 51E35C761912A9220022177F /* FJRootViewController.m in Sources */, 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | }; 306 | 51E35C581912A8FE0022177F /* Sources */ = { 307 | isa = PBXSourcesBuildPhase; 308 | buildActionMask = 2147483647; 309 | files = ( 310 | 51E35C6A1912A8FE0022177F /* CustomCollectionViewTransitionTests.m in Sources */, 311 | ); 312 | runOnlyForDeploymentPostprocessing = 0; 313 | }; 314 | /* End PBXSourcesBuildPhase section */ 315 | 316 | /* Begin PBXTargetDependency section */ 317 | 51E35C621912A8FE0022177F /* PBXTargetDependency */ = { 318 | isa = PBXTargetDependency; 319 | target = 51E35C401912A8FE0022177F /* CustomCollectionViewTransition */; 320 | targetProxy = 51E35C611912A8FE0022177F /* PBXContainerItemProxy */; 321 | }; 322 | /* End PBXTargetDependency section */ 323 | 324 | /* Begin PBXVariantGroup section */ 325 | 51E35C4D1912A8FE0022177F /* InfoPlist.strings */ = { 326 | isa = PBXVariantGroup; 327 | children = ( 328 | 51E35C4E1912A8FE0022177F /* en */, 329 | ); 330 | name = InfoPlist.strings; 331 | sourceTree = ""; 332 | }; 333 | 51E35C661912A8FE0022177F /* InfoPlist.strings */ = { 334 | isa = PBXVariantGroup; 335 | children = ( 336 | 51E35C671912A8FE0022177F /* en */, 337 | ); 338 | name = InfoPlist.strings; 339 | sourceTree = ""; 340 | }; 341 | /* End PBXVariantGroup section */ 342 | 343 | /* Begin XCBuildConfiguration section */ 344 | 51E35C6B1912A8FE0022177F /* Debug */ = { 345 | isa = XCBuildConfiguration; 346 | buildSettings = { 347 | ALWAYS_SEARCH_USER_PATHS = NO; 348 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 349 | CLANG_CXX_LIBRARY = "libc++"; 350 | CLANG_ENABLE_MODULES = YES; 351 | CLANG_ENABLE_OBJC_ARC = YES; 352 | CLANG_WARN_BOOL_CONVERSION = YES; 353 | CLANG_WARN_CONSTANT_CONVERSION = YES; 354 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 355 | CLANG_WARN_EMPTY_BODY = YES; 356 | CLANG_WARN_ENUM_CONVERSION = YES; 357 | CLANG_WARN_INT_CONVERSION = YES; 358 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | GCC_C_LANGUAGE_STANDARD = gnu99; 363 | GCC_DYNAMIC_NO_PIC = NO; 364 | GCC_OPTIMIZATION_LEVEL = 0; 365 | GCC_PREPROCESSOR_DEFINITIONS = ( 366 | "DEBUG=1", 367 | "$(inherited)", 368 | ); 369 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 370 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 371 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 372 | GCC_WARN_UNDECLARED_SELECTOR = YES; 373 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 374 | GCC_WARN_UNUSED_FUNCTION = YES; 375 | GCC_WARN_UNUSED_VARIABLE = YES; 376 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 377 | ONLY_ACTIVE_ARCH = YES; 378 | SDKROOT = iphoneos; 379 | TARGETED_DEVICE_FAMILY = 2; 380 | }; 381 | name = Debug; 382 | }; 383 | 51E35C6C1912A8FE0022177F /* Release */ = { 384 | isa = XCBuildConfiguration; 385 | buildSettings = { 386 | ALWAYS_SEARCH_USER_PATHS = NO; 387 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 388 | CLANG_CXX_LIBRARY = "libc++"; 389 | CLANG_ENABLE_MODULES = YES; 390 | CLANG_ENABLE_OBJC_ARC = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_CONSTANT_CONVERSION = YES; 393 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 394 | CLANG_WARN_EMPTY_BODY = YES; 395 | CLANG_WARN_ENUM_CONVERSION = YES; 396 | CLANG_WARN_INT_CONVERSION = YES; 397 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 398 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 399 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 400 | COPY_PHASE_STRIP = YES; 401 | ENABLE_NS_ASSERTIONS = NO; 402 | GCC_C_LANGUAGE_STANDARD = gnu99; 403 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 404 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 405 | GCC_WARN_UNDECLARED_SELECTOR = YES; 406 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 407 | GCC_WARN_UNUSED_FUNCTION = YES; 408 | GCC_WARN_UNUSED_VARIABLE = YES; 409 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 410 | SDKROOT = iphoneos; 411 | TARGETED_DEVICE_FAMILY = 2; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 51E35C6E1912A8FE0022177F /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 420 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 421 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 422 | GCC_PREFIX_HEADER = "CustomCollectionViewTransition/CustomCollectionViewTransition-Prefix.pch"; 423 | INFOPLIST_FILE = "CustomCollectionViewTransition/CustomCollectionViewTransition-Info.plist"; 424 | PRODUCT_NAME = "$(TARGET_NAME)"; 425 | WRAPPER_EXTENSION = app; 426 | }; 427 | name = Debug; 428 | }; 429 | 51E35C6F1912A8FE0022177F /* Release */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 433 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 434 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 435 | GCC_PREFIX_HEADER = "CustomCollectionViewTransition/CustomCollectionViewTransition-Prefix.pch"; 436 | INFOPLIST_FILE = "CustomCollectionViewTransition/CustomCollectionViewTransition-Info.plist"; 437 | PRODUCT_NAME = "$(TARGET_NAME)"; 438 | WRAPPER_EXTENSION = app; 439 | }; 440 | name = Release; 441 | }; 442 | 51E35C711912A8FE0022177F /* Debug */ = { 443 | isa = XCBuildConfiguration; 444 | buildSettings = { 445 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/CustomCollectionViewTransition.app/CustomCollectionViewTransition"; 446 | FRAMEWORK_SEARCH_PATHS = ( 447 | "$(SDKROOT)/Developer/Library/Frameworks", 448 | "$(inherited)", 449 | "$(DEVELOPER_FRAMEWORKS_DIR)", 450 | ); 451 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 452 | GCC_PREFIX_HEADER = "CustomCollectionViewTransition/CustomCollectionViewTransition-Prefix.pch"; 453 | GCC_PREPROCESSOR_DEFINITIONS = ( 454 | "DEBUG=1", 455 | "$(inherited)", 456 | ); 457 | INFOPLIST_FILE = "CustomCollectionViewTransitionTests/CustomCollectionViewTransitionTests-Info.plist"; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | TEST_HOST = "$(BUNDLE_LOADER)"; 460 | WRAPPER_EXTENSION = xctest; 461 | }; 462 | name = Debug; 463 | }; 464 | 51E35C721912A8FE0022177F /* Release */ = { 465 | isa = XCBuildConfiguration; 466 | buildSettings = { 467 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/CustomCollectionViewTransition.app/CustomCollectionViewTransition"; 468 | FRAMEWORK_SEARCH_PATHS = ( 469 | "$(SDKROOT)/Developer/Library/Frameworks", 470 | "$(inherited)", 471 | "$(DEVELOPER_FRAMEWORKS_DIR)", 472 | ); 473 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 474 | GCC_PREFIX_HEADER = "CustomCollectionViewTransition/CustomCollectionViewTransition-Prefix.pch"; 475 | INFOPLIST_FILE = "CustomCollectionViewTransitionTests/CustomCollectionViewTransitionTests-Info.plist"; 476 | PRODUCT_NAME = "$(TARGET_NAME)"; 477 | TEST_HOST = "$(BUNDLE_LOADER)"; 478 | WRAPPER_EXTENSION = xctest; 479 | }; 480 | name = Release; 481 | }; 482 | /* End XCBuildConfiguration section */ 483 | 484 | /* Begin XCConfigurationList section */ 485 | 51E35C3C1912A8FE0022177F /* Build configuration list for PBXProject "CustomCollectionViewTransition" */ = { 486 | isa = XCConfigurationList; 487 | buildConfigurations = ( 488 | 51E35C6B1912A8FE0022177F /* Debug */, 489 | 51E35C6C1912A8FE0022177F /* Release */, 490 | ); 491 | defaultConfigurationIsVisible = 0; 492 | defaultConfigurationName = Release; 493 | }; 494 | 51E35C6D1912A8FE0022177F /* Build configuration list for PBXNativeTarget "CustomCollectionViewTransition" */ = { 495 | isa = XCConfigurationList; 496 | buildConfigurations = ( 497 | 51E35C6E1912A8FE0022177F /* Debug */, 498 | 51E35C6F1912A8FE0022177F /* Release */, 499 | ); 500 | defaultConfigurationIsVisible = 0; 501 | }; 502 | 51E35C701912A8FE0022177F /* Build configuration list for PBXNativeTarget "CustomCollectionViewTransitionTests" */ = { 503 | isa = XCConfigurationList; 504 | buildConfigurations = ( 505 | 51E35C711912A8FE0022177F /* Debug */, 506 | 51E35C721912A8FE0022177F /* Release */, 507 | ); 508 | defaultConfigurationIsVisible = 0; 509 | }; 510 | /* End XCConfigurationList section */ 511 | }; 512 | rootObject = 51E35C391912A8FE0022177F /* Project object */; 513 | } 514 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition.xcodeproj/project.xcworkspace/xcuserdata/enginkurutepe.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/objcio/issue-12-CustomCollectionViewTransition/78a9192de79d7f0a6870be4a4cc3a0e7833ed84f/CustomCollectionViewTransition.xcodeproj/project.xcworkspace/xcuserdata/enginkurutepe.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CustomCollectionViewTransition.xcodeproj/xcuserdata/enginkurutepe.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 24 | 36 | 37 | 38 | 40 | 52 | 53 | 54 | 56 | 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition.xcodeproj/xcuserdata/enginkurutepe.xcuserdatad/xcschemes/CustomCollectionViewTransition.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition.xcodeproj/xcuserdata/enginkurutepe.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CustomCollectionViewTransition.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 51E35C401912A8FE0022177F 16 | 17 | primary 18 | 19 | 20 | 51E35C5B1912A8FE0022177F 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/CustomCollectionViewTransition-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.fifteenjugglers.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile~ipad 28 | Storyboard 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations~ipad 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationPortraitUpsideDown 37 | UIInterfaceOrientationLandscapeLeft 38 | UIInterfaceOrientationLandscapeRight 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/CustomCollectionViewTransition-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_3_0 10 | #warning "This project uses features only available in iOS SDK 3.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // FJAppDelegate.h 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FJAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // FJAppDelegate.m 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import "FJAppDelegate.h" 10 | 11 | @implementation FJAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | return YES; 16 | } 17 | 18 | - (void)applicationWillResignActive:(UIApplication *)application 19 | { 20 | // 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. 21 | // 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. 22 | } 23 | 24 | - (void)applicationDidEnterBackground:(UIApplication *)application 25 | { 26 | // 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. 27 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 28 | } 29 | 30 | - (void)applicationWillEnterForeground:(UIApplication *)application 31 | { 32 | // 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. 33 | } 34 | 35 | - (void)applicationDidBecomeActive:(UIApplication *)application 36 | { 37 | // 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. 38 | } 39 | 40 | - (void)applicationWillTerminate:(UIApplication *)application 41 | { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJCollectionDataSource.h: -------------------------------------------------------------------------------- 1 | // 2 | // FJCollectionDataSource.h 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FJCollectionDataSource : NSObject 12 | 13 | @property (nonatomic) NSInteger numberOfItems; 14 | @property (nonatomic, strong) UIColor *color; 15 | 16 | - (instancetype)initWithColor:(UIColor*)color numberOfItems:(NSInteger)count; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJCollectionDataSource.m: -------------------------------------------------------------------------------- 1 | // 2 | // FJCollectionDataSource.m 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import "FJCollectionDataSource.h" 10 | 11 | @implementation FJCollectionDataSource 12 | 13 | - (instancetype)initWithColor:(UIColor*)color numberOfItems:(NSInteger)count 14 | { 15 | self = [super init]; 16 | 17 | if (self) { 18 | self.color = color; 19 | self.numberOfItems = count; 20 | } 21 | 22 | return self; 23 | } 24 | 25 | - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView 26 | { 27 | return 1; 28 | } 29 | 30 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section 31 | { 32 | return _numberOfItems; 33 | } 34 | 35 | - (UICollectionViewCell*)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath 36 | { 37 | UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"ColorCell" forIndexPath:indexPath]; 38 | 39 | cell.backgroundColor = _color; 40 | 41 | UILabel *label = [cell viewWithTag:2]; 42 | 43 | label.text = [NSString stringWithFormat:@"%d - %d", indexPath.section, indexPath.item]; 44 | 45 | return cell; 46 | } 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJContainerCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // FJContainerCell.h 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FJContainerCell : UICollectionViewCell 12 | 13 | @property (nonatomic, strong) IBOutlet UICollectionView *collectionView; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJContainerCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // FJContainerCell.m 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import "FJContainerCell.h" 10 | 11 | @implementation FJContainerCell 12 | 13 | - (id)initWithFrame:(CGRect)frame 14 | { 15 | self = [super initWithFrame:frame]; 16 | if (self) { 17 | // Initialization code 18 | } 19 | return self; 20 | } 21 | 22 | /* 23 | // Only override drawRect: if you perform custom drawing. 24 | // An empty implementation adversely affects performance during animation. 25 | - (void)drawRect:(CGRect)rect 26 | { 27 | // Drawing code 28 | } 29 | */ 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJDetailViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FJDetailViewController.h 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FJDetailViewController : UICollectionViewController 12 | 13 | @property (nonatomic, strong) id dataSource; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJDetailViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FJDetailViewController.m 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import "FJDetailViewController.h" 10 | 11 | @interface FJDetailViewController () 12 | 13 | @end 14 | 15 | @implementation FJDetailViewController 16 | 17 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 18 | { 19 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 20 | if (self) { 21 | // Custom initialization 22 | } 23 | return self; 24 | } 25 | 26 | - (void)viewDidLoad 27 | { 28 | [super viewDidLoad]; 29 | self.collectionView.dataSource = _dataSource; 30 | [self.collectionView reloadData]; 31 | } 32 | 33 | - (void)didReceiveMemoryWarning 34 | { 35 | [super didReceiveMemoryWarning]; 36 | // Dispose of any resources that can be recreated. 37 | } 38 | 39 | /* 40 | #pragma mark - Navigation 41 | 42 | // In a storyboard-based application, you will often want to do a little preparation before navigation 43 | - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender 44 | { 45 | // Get the new view controller using [segue destinationViewController]. 46 | // Pass the selected object to the new view controller. 47 | } 48 | */ 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJLineToGridAnimator.h: -------------------------------------------------------------------------------- 1 | // 2 | // FJLineToGridAnimator.h 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FJLineToGridAnimator : NSObject 12 | 13 | @property (nonatomic, strong) UICollectionView *fromCollectionView; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJLineToGridAnimator.m: -------------------------------------------------------------------------------- 1 | // 2 | // FJLineToGridAnimator.m 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import "FJLineToGridAnimator.h" 10 | 11 | @interface FJLineToGridAnimator () 12 | 13 | @property (nonatomic, strong) UICollectionViewTransitionLayout *transitionLayout; 14 | @property (nonatomic) NSTimeInterval startTime; 15 | @property (nonatomic) NSTimeInterval endTime; 16 | @property (nonatomic, strong) NSTimer *timer; 17 | @property (nonatomic, strong) id transitionContext; 18 | @property (nonatomic, strong) UICollectionView *toCollectionView; 19 | 20 | @end 21 | 22 | @implementation FJLineToGridAnimator 23 | 24 | 25 | //////////////////////////////////////////////////////////////////////////////////////////////// 26 | #pragma mark - Animated Transitioning 27 | //////////////////////////////////////////////////////////////////////////////////////////////// 28 | 29 | - (NSTimeInterval)transitionDuration:(id)transitionContext 30 | { 31 | return 0.6; 32 | } 33 | 34 | - (void)animateTransition:(id)transitionContext 35 | { 36 | UIView *inView = [transitionContext containerView]; 37 | UICollectionViewController *fromVC = (UICollectionViewController*) [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; 38 | UIView *fromView = [fromVC view]; 39 | UICollectionViewController *toVC = (UICollectionViewController*)[transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; 40 | UIView *toView = toVC.view; 41 | self.toCollectionView = [toVC collectionView]; 42 | 43 | CGRect initialRect = [inView.window convertRect:_fromCollectionView.frame fromView:_fromCollectionView.superview]; 44 | CGRect finalRect = [transitionContext finalFrameForViewController:toVC]; 45 | 46 | UICollectionViewFlowLayout *toLayout = (UICollectionViewFlowLayout*) _toCollectionView.collectionViewLayout; 47 | 48 | UICollectionViewFlowLayout *currentLayout = (UICollectionViewFlowLayout*) _fromCollectionView.collectionViewLayout; 49 | UICollectionViewFlowLayout *currentLayoutCopy = [[UICollectionViewFlowLayout alloc] init]; 50 | 51 | currentLayoutCopy.itemSize = currentLayout.itemSize; 52 | currentLayoutCopy.sectionInset = currentLayout.sectionInset; 53 | currentLayoutCopy.minimumLineSpacing = currentLayout.minimumLineSpacing; 54 | currentLayoutCopy.minimumInteritemSpacing = currentLayout.minimumInteritemSpacing; 55 | currentLayoutCopy.scrollDirection = currentLayout.scrollDirection; 56 | 57 | [self.fromCollectionView setCollectionViewLayout:currentLayoutCopy animated:NO]; 58 | 59 | UIEdgeInsets contentInset = _toCollectionView.contentInset; 60 | 61 | CGFloat oldBottomInset = contentInset.bottom; 62 | contentInset.bottom = CGRectGetHeight(finalRect)-(toLayout.itemSize.height+toLayout.sectionInset.bottom+toLayout.sectionInset.top); 63 | 64 | self.toCollectionView.contentInset = contentInset; 65 | [self.toCollectionView setCollectionViewLayout:currentLayout animated:NO]; 66 | toView.frame = initialRect; 67 | [inView insertSubview:toView aboveSubview:fromView]; 68 | 69 | [UIView 70 | animateWithDuration:[self transitionDuration:transitionContext] 71 | delay:0 72 | options:UIViewAnimationOptionBeginFromCurrentState 73 | animations:^{ 74 | toView.frame = finalRect; 75 | [_toCollectionView 76 | performBatchUpdates:^{ 77 | [_toCollectionView setCollectionViewLayout:toLayout animated:NO]; 78 | } 79 | completion:^(BOOL finished) { 80 | _toCollectionView.contentInset = UIEdgeInsetsMake(contentInset.top, 81 | contentInset.left, 82 | oldBottomInset, 83 | contentInset.right); 84 | }]; 85 | 86 | } completion:^(BOOL finished) { 87 | [transitionContext completeTransition:YES]; 88 | }]; 89 | 90 | 91 | 92 | } 93 | 94 | @end -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJRootViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FJRootViewController.h 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FJRootViewController : UICollectionViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/FJRootViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FJRootViewController.m 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import "FJRootViewController.h" 10 | #import "FJCollectionDataSource.h" 11 | #import "FJLineToGridAnimator.h" 12 | #import "FJContainerCell.h" 13 | #import "FJDetailViewController.h" 14 | 15 | @interface FJRootViewController () 16 | 17 | @property (nonatomic, strong) NSArray *dataSources; 18 | @property (nonatomic, weak) UICollectionView *sourceCollectionView; 19 | @end 20 | 21 | @implementation FJRootViewController 22 | 23 | - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 24 | { 25 | self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; 26 | if (self) { 27 | // Custom initialization 28 | } 29 | return self; 30 | } 31 | 32 | - (void)viewDidLoad 33 | { 34 | [super viewDidLoad]; 35 | self.navigationController.delegate = self; 36 | self.dataSources = @[ 37 | [[FJCollectionDataSource alloc]initWithColor:[UIColor redColor] numberOfItems:10], 38 | [[FJCollectionDataSource alloc]initWithColor:[UIColor greenColor] numberOfItems:10], 39 | [[FJCollectionDataSource alloc]initWithColor:[UIColor blueColor] numberOfItems:10], 40 | [[FJCollectionDataSource alloc]initWithColor:[UIColor orangeColor] numberOfItems:10], 41 | [[FJCollectionDataSource alloc]initWithColor:[UIColor yellowColor] numberOfItems:10], 42 | [[FJCollectionDataSource alloc]initWithColor:[UIColor magentaColor] numberOfItems:10], 43 | [[FJCollectionDataSource alloc]initWithColor:[UIColor cyanColor] numberOfItems:10], 44 | [[FJCollectionDataSource alloc]initWithColor:[UIColor purpleColor] numberOfItems:10] 45 | ]; 46 | 47 | } 48 | 49 | - (void)didReceiveMemoryWarning 50 | { 51 | [super didReceiveMemoryWarning]; 52 | // Dispose of any resources that can be recreated. 53 | } 54 | 55 | 56 | #pragma mark - Navigation 57 | 58 | 59 | 60 | 61 | - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView 62 | { 63 | return [_dataSources count]; 64 | } 65 | 66 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section 67 | { 68 | return 1; 69 | } 70 | 71 | - (UICollectionViewCell*)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath 72 | { 73 | FJContainerCell *containerCell = [self.collectionView dequeueReusableCellWithReuseIdentifier:@"ContainerCell" forIndexPath:indexPath]; 74 | 75 | UICollectionView *childCollectionView = containerCell.collectionView; 76 | 77 | childCollectionView.dataSource = _dataSources[indexPath.section]; 78 | 79 | return containerCell; 80 | } 81 | 82 | - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath 83 | { 84 | 85 | FJDetailViewController *dvc = [self.storyboard instantiateViewControllerWithIdentifier:@"FJDetailViewController"]; 86 | 87 | dvc.dataSource = collectionView.dataSource; 88 | 89 | self.sourceCollectionView = collectionView; 90 | 91 | [self.navigationController pushViewController:dvc animated:YES]; 92 | } 93 | 94 | - (id)navigationController:(UINavigationController *)navigationController 95 | animationControllerForOperation:(UINavigationControllerOperation)operation 96 | fromViewController:(UIViewController *)fromVC 97 | toViewController:(UIViewController *)toVC 98 | { 99 | if (fromVC == self && operation == UINavigationControllerOperationPush) { 100 | FJLineToGridAnimator *animator = [[FJLineToGridAnimator alloc] init]; 101 | animator.fromCollectionView = self.sourceCollectionView; 102 | return animator; 103 | } 104 | else { 105 | return nil; 106 | } 107 | } 108 | 109 | @end 110 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "ipad", 5 | "size" : "29x29", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "ipad", 10 | "size" : "29x29", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "ipad", 15 | "size" : "40x40", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "40x40", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "76x76", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "76x76", 31 | "scale" : "2x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /CustomCollectionViewTransition/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "ipad", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "1x" 9 | }, 10 | { 11 | "orientation" : "landscape", 12 | "idiom" : "ipad", 13 | "extent" : "full-screen", 14 | "minimum-system-version" : "7.0", 15 | "scale" : "1x" 16 | }, 17 | { 18 | "orientation" : "portrait", 19 | "idiom" : "ipad", 20 | "extent" : "full-screen", 21 | "minimum-system-version" : "7.0", 22 | "scale" : "2x" 23 | }, 24 | { 25 | "orientation" : "landscape", 26 | "idiom" : "ipad", 27 | "extent" : "full-screen", 28 | "minimum-system-version" : "7.0", 29 | "scale" : "2x" 30 | } 31 | ], 32 | "info" : { 33 | "version" : 1, 34 | "author" : "xcode" 35 | } 36 | } -------------------------------------------------------------------------------- /CustomCollectionViewTransition/Storyboard.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /CustomCollectionViewTransition/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CustomCollectionViewTransition 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "FJAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([FJAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /CustomCollectionViewTransitionTests/CustomCollectionViewTransitionTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.fifteenjugglers.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /CustomCollectionViewTransitionTests/CustomCollectionViewTransitionTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CustomCollectionViewTransitionTests.m 3 | // CustomCollectionViewTransitionTests 4 | // 5 | // Created by Engin Kurutepe on 01/05/14. 6 | // Copyright (c) 2014 Fifteen Jugglers Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CustomCollectionViewTransitionTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CustomCollectionViewTransitionTests 16 | 17 | - (void)setUp 18 | { 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 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /CustomCollectionViewTransitionTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | CustomCollectionViewTransition 2 | ============================== 3 | 4 | A demo project 5 | --------------------------------------------------------------------------------