├── CollectionView_Paging.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcuserdata │ └── Sandip.xcuserdatad │ └── xcschemes │ ├── CollectionView_Paging.xcscheme │ └── xcschememanagement.plist ├── CollectionView_Paging ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── CollectionView_PagingTests ├── CollectionView_PagingTests.m └── Info.plist ├── CollectionView_PagingUITests ├── CollectionView_PagingUITests.m └── Info.plist ├── README.md └── working.gif /CollectionView_Paging.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 39A1CD6B1CD5D3C600A60C72 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 39A1CD6A1CD5D3C600A60C72 /* main.m */; }; 11 | 39A1CD6E1CD5D3C600A60C72 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 39A1CD6D1CD5D3C600A60C72 /* AppDelegate.m */; }; 12 | 39A1CD711CD5D3C600A60C72 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 39A1CD701CD5D3C600A60C72 /* ViewController.m */; }; 13 | 39A1CD741CD5D3C600A60C72 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 39A1CD721CD5D3C600A60C72 /* Main.storyboard */; }; 14 | 39A1CD761CD5D3C600A60C72 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 39A1CD751CD5D3C600A60C72 /* Assets.xcassets */; }; 15 | 39A1CD791CD5D3C600A60C72 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 39A1CD771CD5D3C600A60C72 /* LaunchScreen.storyboard */; }; 16 | 39A1CD841CD5D3C600A60C72 /* CollectionView_PagingTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 39A1CD831CD5D3C600A60C72 /* CollectionView_PagingTests.m */; }; 17 | 39A1CD8F1CD5D3C600A60C72 /* CollectionView_PagingUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 39A1CD8E1CD5D3C600A60C72 /* CollectionView_PagingUITests.m */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 39A1CD801CD5D3C600A60C72 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 39A1CD5E1CD5D3C600A60C72 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 39A1CD651CD5D3C600A60C72; 26 | remoteInfo = CollectionView_Paging; 27 | }; 28 | 39A1CD8B1CD5D3C600A60C72 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 39A1CD5E1CD5D3C600A60C72 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 39A1CD651CD5D3C600A60C72; 33 | remoteInfo = CollectionView_Paging; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 39A1CD661CD5D3C600A60C72 /* CollectionView_Paging.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CollectionView_Paging.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 39A1CD6A1CD5D3C600A60C72 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 40 | 39A1CD6C1CD5D3C600A60C72 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 41 | 39A1CD6D1CD5D3C600A60C72 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 42 | 39A1CD6F1CD5D3C600A60C72 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 43 | 39A1CD701CD5D3C600A60C72 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 44 | 39A1CD731CD5D3C600A60C72 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | 39A1CD751CD5D3C600A60C72 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | 39A1CD781CD5D3C600A60C72 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | 39A1CD7A1CD5D3C600A60C72 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | 39A1CD7F1CD5D3C600A60C72 /* CollectionView_PagingTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CollectionView_PagingTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 39A1CD831CD5D3C600A60C72 /* CollectionView_PagingTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CollectionView_PagingTests.m; sourceTree = ""; }; 50 | 39A1CD851CD5D3C600A60C72 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | 39A1CD8A1CD5D3C600A60C72 /* CollectionView_PagingUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CollectionView_PagingUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 39A1CD8E1CD5D3C600A60C72 /* CollectionView_PagingUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CollectionView_PagingUITests.m; sourceTree = ""; }; 53 | 39A1CD901CD5D3C600A60C72 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | 39F23C1B1CD5DCCC00F14830 /* DateFlowLayout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DateFlowLayout.h; sourceTree = ""; }; 55 | 39F23C1C1CD5DCCC00F14830 /* DateFlowLayout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DateFlowLayout.m; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 39A1CD631CD5D3C600A60C72 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | 39A1CD7C1CD5D3C600A60C72 /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | 39A1CD871CD5D3C600A60C72 /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | /* End PBXFrameworksBuildPhase section */ 81 | 82 | /* Begin PBXGroup section */ 83 | 39A1CD5D1CD5D3C600A60C72 = { 84 | isa = PBXGroup; 85 | children = ( 86 | 39A1CD681CD5D3C600A60C72 /* CollectionView_Paging */, 87 | 39A1CD821CD5D3C600A60C72 /* CollectionView_PagingTests */, 88 | 39A1CD8D1CD5D3C600A60C72 /* CollectionView_PagingUITests */, 89 | 39A1CD671CD5D3C600A60C72 /* Products */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 39A1CD671CD5D3C600A60C72 /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 39A1CD661CD5D3C600A60C72 /* CollectionView_Paging.app */, 97 | 39A1CD7F1CD5D3C600A60C72 /* CollectionView_PagingTests.xctest */, 98 | 39A1CD8A1CD5D3C600A60C72 /* CollectionView_PagingUITests.xctest */, 99 | ); 100 | name = Products; 101 | sourceTree = ""; 102 | }; 103 | 39A1CD681CD5D3C600A60C72 /* CollectionView_Paging */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 39F23C1A1CD5DCBA00F14830 /* FlowLayout */, 107 | 39A1CD6C1CD5D3C600A60C72 /* AppDelegate.h */, 108 | 39A1CD6D1CD5D3C600A60C72 /* AppDelegate.m */, 109 | 39A1CD6F1CD5D3C600A60C72 /* ViewController.h */, 110 | 39A1CD701CD5D3C600A60C72 /* ViewController.m */, 111 | 39A1CD721CD5D3C600A60C72 /* Main.storyboard */, 112 | 39A1CD751CD5D3C600A60C72 /* Assets.xcassets */, 113 | 39A1CD771CD5D3C600A60C72 /* LaunchScreen.storyboard */, 114 | 39A1CD7A1CD5D3C600A60C72 /* Info.plist */, 115 | 39A1CD691CD5D3C600A60C72 /* Supporting Files */, 116 | ); 117 | path = CollectionView_Paging; 118 | sourceTree = ""; 119 | }; 120 | 39A1CD691CD5D3C600A60C72 /* Supporting Files */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 39A1CD6A1CD5D3C600A60C72 /* main.m */, 124 | ); 125 | name = "Supporting Files"; 126 | sourceTree = ""; 127 | }; 128 | 39A1CD821CD5D3C600A60C72 /* CollectionView_PagingTests */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 39A1CD831CD5D3C600A60C72 /* CollectionView_PagingTests.m */, 132 | 39A1CD851CD5D3C600A60C72 /* Info.plist */, 133 | ); 134 | path = CollectionView_PagingTests; 135 | sourceTree = ""; 136 | }; 137 | 39A1CD8D1CD5D3C600A60C72 /* CollectionView_PagingUITests */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 39A1CD8E1CD5D3C600A60C72 /* CollectionView_PagingUITests.m */, 141 | 39A1CD901CD5D3C600A60C72 /* Info.plist */, 142 | ); 143 | path = CollectionView_PagingUITests; 144 | sourceTree = ""; 145 | }; 146 | 39F23C1A1CD5DCBA00F14830 /* FlowLayout */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 39F23C1B1CD5DCCC00F14830 /* DateFlowLayout.h */, 150 | 39F23C1C1CD5DCCC00F14830 /* DateFlowLayout.m */, 151 | ); 152 | name = FlowLayout; 153 | sourceTree = ""; 154 | }; 155 | /* End PBXGroup section */ 156 | 157 | /* Begin PBXNativeTarget section */ 158 | 39A1CD651CD5D3C600A60C72 /* CollectionView_Paging */ = { 159 | isa = PBXNativeTarget; 160 | buildConfigurationList = 39A1CD931CD5D3C600A60C72 /* Build configuration list for PBXNativeTarget "CollectionView_Paging" */; 161 | buildPhases = ( 162 | 39A1CD621CD5D3C600A60C72 /* Sources */, 163 | 39A1CD631CD5D3C600A60C72 /* Frameworks */, 164 | 39A1CD641CD5D3C600A60C72 /* Resources */, 165 | ); 166 | buildRules = ( 167 | ); 168 | dependencies = ( 169 | ); 170 | name = CollectionView_Paging; 171 | productName = CollectionView_Paging; 172 | productReference = 39A1CD661CD5D3C600A60C72 /* CollectionView_Paging.app */; 173 | productType = "com.apple.product-type.application"; 174 | }; 175 | 39A1CD7E1CD5D3C600A60C72 /* CollectionView_PagingTests */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = 39A1CD961CD5D3C700A60C72 /* Build configuration list for PBXNativeTarget "CollectionView_PagingTests" */; 178 | buildPhases = ( 179 | 39A1CD7B1CD5D3C600A60C72 /* Sources */, 180 | 39A1CD7C1CD5D3C600A60C72 /* Frameworks */, 181 | 39A1CD7D1CD5D3C600A60C72 /* Resources */, 182 | ); 183 | buildRules = ( 184 | ); 185 | dependencies = ( 186 | 39A1CD811CD5D3C600A60C72 /* PBXTargetDependency */, 187 | ); 188 | name = CollectionView_PagingTests; 189 | productName = CollectionView_PagingTests; 190 | productReference = 39A1CD7F1CD5D3C600A60C72 /* CollectionView_PagingTests.xctest */; 191 | productType = "com.apple.product-type.bundle.unit-test"; 192 | }; 193 | 39A1CD891CD5D3C600A60C72 /* CollectionView_PagingUITests */ = { 194 | isa = PBXNativeTarget; 195 | buildConfigurationList = 39A1CD991CD5D3C700A60C72 /* Build configuration list for PBXNativeTarget "CollectionView_PagingUITests" */; 196 | buildPhases = ( 197 | 39A1CD861CD5D3C600A60C72 /* Sources */, 198 | 39A1CD871CD5D3C600A60C72 /* Frameworks */, 199 | 39A1CD881CD5D3C600A60C72 /* Resources */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | 39A1CD8C1CD5D3C600A60C72 /* PBXTargetDependency */, 205 | ); 206 | name = CollectionView_PagingUITests; 207 | productName = CollectionView_PagingUITests; 208 | productReference = 39A1CD8A1CD5D3C600A60C72 /* CollectionView_PagingUITests.xctest */; 209 | productType = "com.apple.product-type.bundle.ui-testing"; 210 | }; 211 | /* End PBXNativeTarget section */ 212 | 213 | /* Begin PBXProject section */ 214 | 39A1CD5E1CD5D3C600A60C72 /* Project object */ = { 215 | isa = PBXProject; 216 | attributes = { 217 | LastUpgradeCheck = 0720; 218 | ORGANIZATIONNAME = Sandip; 219 | TargetAttributes = { 220 | 39A1CD651CD5D3C600A60C72 = { 221 | CreatedOnToolsVersion = 7.2; 222 | }; 223 | 39A1CD7E1CD5D3C600A60C72 = { 224 | CreatedOnToolsVersion = 7.2; 225 | TestTargetID = 39A1CD651CD5D3C600A60C72; 226 | }; 227 | 39A1CD891CD5D3C600A60C72 = { 228 | CreatedOnToolsVersion = 7.2; 229 | TestTargetID = 39A1CD651CD5D3C600A60C72; 230 | }; 231 | }; 232 | }; 233 | buildConfigurationList = 39A1CD611CD5D3C600A60C72 /* Build configuration list for PBXProject "CollectionView_Paging" */; 234 | compatibilityVersion = "Xcode 3.2"; 235 | developmentRegion = English; 236 | hasScannedForEncodings = 0; 237 | knownRegions = ( 238 | en, 239 | Base, 240 | ); 241 | mainGroup = 39A1CD5D1CD5D3C600A60C72; 242 | productRefGroup = 39A1CD671CD5D3C600A60C72 /* Products */; 243 | projectDirPath = ""; 244 | projectRoot = ""; 245 | targets = ( 246 | 39A1CD651CD5D3C600A60C72 /* CollectionView_Paging */, 247 | 39A1CD7E1CD5D3C600A60C72 /* CollectionView_PagingTests */, 248 | 39A1CD891CD5D3C600A60C72 /* CollectionView_PagingUITests */, 249 | ); 250 | }; 251 | /* End PBXProject section */ 252 | 253 | /* Begin PBXResourcesBuildPhase section */ 254 | 39A1CD641CD5D3C600A60C72 /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | 39A1CD791CD5D3C600A60C72 /* LaunchScreen.storyboard in Resources */, 259 | 39A1CD761CD5D3C600A60C72 /* Assets.xcassets in Resources */, 260 | 39A1CD741CD5D3C600A60C72 /* Main.storyboard in Resources */, 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | 39A1CD7D1CD5D3C600A60C72 /* Resources */ = { 265 | isa = PBXResourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | 39A1CD881CD5D3C600A60C72 /* Resources */ = { 272 | isa = PBXResourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | }; 278 | /* End PBXResourcesBuildPhase section */ 279 | 280 | /* Begin PBXSourcesBuildPhase section */ 281 | 39A1CD621CD5D3C600A60C72 /* Sources */ = { 282 | isa = PBXSourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | 39A1CD711CD5D3C600A60C72 /* ViewController.m in Sources */, 286 | 39A1CD6E1CD5D3C600A60C72 /* AppDelegate.m in Sources */, 287 | 39A1CD6B1CD5D3C600A60C72 /* main.m in Sources */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | 39A1CD7B1CD5D3C600A60C72 /* Sources */ = { 292 | isa = PBXSourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | 39A1CD841CD5D3C600A60C72 /* CollectionView_PagingTests.m in Sources */, 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | }; 299 | 39A1CD861CD5D3C600A60C72 /* Sources */ = { 300 | isa = PBXSourcesBuildPhase; 301 | buildActionMask = 2147483647; 302 | files = ( 303 | 39A1CD8F1CD5D3C600A60C72 /* CollectionView_PagingUITests.m in Sources */, 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | }; 307 | /* End PBXSourcesBuildPhase section */ 308 | 309 | /* Begin PBXTargetDependency section */ 310 | 39A1CD811CD5D3C600A60C72 /* PBXTargetDependency */ = { 311 | isa = PBXTargetDependency; 312 | target = 39A1CD651CD5D3C600A60C72 /* CollectionView_Paging */; 313 | targetProxy = 39A1CD801CD5D3C600A60C72 /* PBXContainerItemProxy */; 314 | }; 315 | 39A1CD8C1CD5D3C600A60C72 /* PBXTargetDependency */ = { 316 | isa = PBXTargetDependency; 317 | target = 39A1CD651CD5D3C600A60C72 /* CollectionView_Paging */; 318 | targetProxy = 39A1CD8B1CD5D3C600A60C72 /* PBXContainerItemProxy */; 319 | }; 320 | /* End PBXTargetDependency section */ 321 | 322 | /* Begin PBXVariantGroup section */ 323 | 39A1CD721CD5D3C600A60C72 /* Main.storyboard */ = { 324 | isa = PBXVariantGroup; 325 | children = ( 326 | 39A1CD731CD5D3C600A60C72 /* Base */, 327 | ); 328 | name = Main.storyboard; 329 | sourceTree = ""; 330 | }; 331 | 39A1CD771CD5D3C600A60C72 /* LaunchScreen.storyboard */ = { 332 | isa = PBXVariantGroup; 333 | children = ( 334 | 39A1CD781CD5D3C600A60C72 /* Base */, 335 | ); 336 | name = LaunchScreen.storyboard; 337 | sourceTree = ""; 338 | }; 339 | /* End PBXVariantGroup section */ 340 | 341 | /* Begin XCBuildConfiguration section */ 342 | 39A1CD911CD5D3C600A60C72 /* Debug */ = { 343 | isa = XCBuildConfiguration; 344 | buildSettings = { 345 | ALWAYS_SEARCH_USER_PATHS = NO; 346 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 347 | CLANG_CXX_LIBRARY = "libc++"; 348 | CLANG_ENABLE_MODULES = YES; 349 | CLANG_ENABLE_OBJC_ARC = YES; 350 | CLANG_WARN_BOOL_CONVERSION = YES; 351 | CLANG_WARN_CONSTANT_CONVERSION = YES; 352 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 353 | CLANG_WARN_EMPTY_BODY = YES; 354 | CLANG_WARN_ENUM_CONVERSION = YES; 355 | CLANG_WARN_INT_CONVERSION = YES; 356 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 357 | CLANG_WARN_UNREACHABLE_CODE = YES; 358 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 359 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 360 | COPY_PHASE_STRIP = NO; 361 | DEBUG_INFORMATION_FORMAT = dwarf; 362 | ENABLE_STRICT_OBJC_MSGSEND = YES; 363 | ENABLE_TESTABILITY = YES; 364 | GCC_C_LANGUAGE_STANDARD = gnu99; 365 | GCC_DYNAMIC_NO_PIC = NO; 366 | GCC_NO_COMMON_BLOCKS = YES; 367 | GCC_OPTIMIZATION_LEVEL = 0; 368 | GCC_PREPROCESSOR_DEFINITIONS = ( 369 | "DEBUG=1", 370 | "$(inherited)", 371 | ); 372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 374 | GCC_WARN_UNDECLARED_SELECTOR = YES; 375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 376 | GCC_WARN_UNUSED_FUNCTION = YES; 377 | GCC_WARN_UNUSED_VARIABLE = YES; 378 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 379 | MTL_ENABLE_DEBUG_INFO = YES; 380 | ONLY_ACTIVE_ARCH = YES; 381 | SDKROOT = iphoneos; 382 | }; 383 | name = Debug; 384 | }; 385 | 39A1CD921CD5D3C600A60C72 /* Release */ = { 386 | isa = XCBuildConfiguration; 387 | buildSettings = { 388 | ALWAYS_SEARCH_USER_PATHS = NO; 389 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 390 | CLANG_CXX_LIBRARY = "libc++"; 391 | CLANG_ENABLE_MODULES = YES; 392 | CLANG_ENABLE_OBJC_ARC = YES; 393 | CLANG_WARN_BOOL_CONVERSION = YES; 394 | CLANG_WARN_CONSTANT_CONVERSION = YES; 395 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 396 | CLANG_WARN_EMPTY_BODY = YES; 397 | CLANG_WARN_ENUM_CONVERSION = YES; 398 | CLANG_WARN_INT_CONVERSION = YES; 399 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 400 | CLANG_WARN_UNREACHABLE_CODE = YES; 401 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 402 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 403 | COPY_PHASE_STRIP = NO; 404 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 405 | ENABLE_NS_ASSERTIONS = NO; 406 | ENABLE_STRICT_OBJC_MSGSEND = YES; 407 | GCC_C_LANGUAGE_STANDARD = gnu99; 408 | GCC_NO_COMMON_BLOCKS = YES; 409 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 410 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 411 | GCC_WARN_UNDECLARED_SELECTOR = YES; 412 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 413 | GCC_WARN_UNUSED_FUNCTION = YES; 414 | GCC_WARN_UNUSED_VARIABLE = YES; 415 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 416 | MTL_ENABLE_DEBUG_INFO = NO; 417 | SDKROOT = iphoneos; 418 | VALIDATE_PRODUCT = YES; 419 | }; 420 | name = Release; 421 | }; 422 | 39A1CD941CD5D3C600A60C72 /* Debug */ = { 423 | isa = XCBuildConfiguration; 424 | buildSettings = { 425 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 426 | INFOPLIST_FILE = CollectionView_Paging/Info.plist; 427 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 428 | PRODUCT_BUNDLE_IDENTIFIER = "Sandip.CollectionView-Paging"; 429 | PRODUCT_NAME = "$(TARGET_NAME)"; 430 | TARGETED_DEVICE_FAMILY = 1; 431 | }; 432 | name = Debug; 433 | }; 434 | 39A1CD951CD5D3C600A60C72 /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | buildSettings = { 437 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 438 | INFOPLIST_FILE = CollectionView_Paging/Info.plist; 439 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 440 | PRODUCT_BUNDLE_IDENTIFIER = "Sandip.CollectionView-Paging"; 441 | PRODUCT_NAME = "$(TARGET_NAME)"; 442 | TARGETED_DEVICE_FAMILY = 1; 443 | }; 444 | name = Release; 445 | }; 446 | 39A1CD971CD5D3C700A60C72 /* Debug */ = { 447 | isa = XCBuildConfiguration; 448 | buildSettings = { 449 | BUNDLE_LOADER = "$(TEST_HOST)"; 450 | INFOPLIST_FILE = CollectionView_PagingTests/Info.plist; 451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 452 | PRODUCT_BUNDLE_IDENTIFIER = "Sandip.CollectionView-PagingTests"; 453 | PRODUCT_NAME = "$(TARGET_NAME)"; 454 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CollectionView_Paging.app/CollectionView_Paging"; 455 | }; 456 | name = Debug; 457 | }; 458 | 39A1CD981CD5D3C700A60C72 /* Release */ = { 459 | isa = XCBuildConfiguration; 460 | buildSettings = { 461 | BUNDLE_LOADER = "$(TEST_HOST)"; 462 | INFOPLIST_FILE = CollectionView_PagingTests/Info.plist; 463 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 464 | PRODUCT_BUNDLE_IDENTIFIER = "Sandip.CollectionView-PagingTests"; 465 | PRODUCT_NAME = "$(TARGET_NAME)"; 466 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CollectionView_Paging.app/CollectionView_Paging"; 467 | }; 468 | name = Release; 469 | }; 470 | 39A1CD9A1CD5D3C700A60C72 /* Debug */ = { 471 | isa = XCBuildConfiguration; 472 | buildSettings = { 473 | INFOPLIST_FILE = CollectionView_PagingUITests/Info.plist; 474 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 475 | PRODUCT_BUNDLE_IDENTIFIER = "Sandip.CollectionView-PagingUITests"; 476 | PRODUCT_NAME = "$(TARGET_NAME)"; 477 | TEST_TARGET_NAME = CollectionView_Paging; 478 | USES_XCTRUNNER = YES; 479 | }; 480 | name = Debug; 481 | }; 482 | 39A1CD9B1CD5D3C700A60C72 /* Release */ = { 483 | isa = XCBuildConfiguration; 484 | buildSettings = { 485 | INFOPLIST_FILE = CollectionView_PagingUITests/Info.plist; 486 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 487 | PRODUCT_BUNDLE_IDENTIFIER = "Sandip.CollectionView-PagingUITests"; 488 | PRODUCT_NAME = "$(TARGET_NAME)"; 489 | TEST_TARGET_NAME = CollectionView_Paging; 490 | USES_XCTRUNNER = YES; 491 | }; 492 | name = Release; 493 | }; 494 | /* End XCBuildConfiguration section */ 495 | 496 | /* Begin XCConfigurationList section */ 497 | 39A1CD611CD5D3C600A60C72 /* Build configuration list for PBXProject "CollectionView_Paging" */ = { 498 | isa = XCConfigurationList; 499 | buildConfigurations = ( 500 | 39A1CD911CD5D3C600A60C72 /* Debug */, 501 | 39A1CD921CD5D3C600A60C72 /* Release */, 502 | ); 503 | defaultConfigurationIsVisible = 0; 504 | defaultConfigurationName = Release; 505 | }; 506 | 39A1CD931CD5D3C600A60C72 /* Build configuration list for PBXNativeTarget "CollectionView_Paging" */ = { 507 | isa = XCConfigurationList; 508 | buildConfigurations = ( 509 | 39A1CD941CD5D3C600A60C72 /* Debug */, 510 | 39A1CD951CD5D3C600A60C72 /* Release */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | 39A1CD961CD5D3C700A60C72 /* Build configuration list for PBXNativeTarget "CollectionView_PagingTests" */ = { 516 | isa = XCConfigurationList; 517 | buildConfigurations = ( 518 | 39A1CD971CD5D3C700A60C72 /* Debug */, 519 | 39A1CD981CD5D3C700A60C72 /* Release */, 520 | ); 521 | defaultConfigurationIsVisible = 0; 522 | defaultConfigurationName = Release; 523 | }; 524 | 39A1CD991CD5D3C700A60C72 /* Build configuration list for PBXNativeTarget "CollectionView_PagingUITests" */ = { 525 | isa = XCConfigurationList; 526 | buildConfigurations = ( 527 | 39A1CD9A1CD5D3C700A60C72 /* Debug */, 528 | 39A1CD9B1CD5D3C700A60C72 /* Release */, 529 | ); 530 | defaultConfigurationIsVisible = 0; 531 | defaultConfigurationName = Release; 532 | }; 533 | /* End XCConfigurationList section */ 534 | }; 535 | rootObject = 39A1CD5E1CD5D3C600A60C72 /* Project object */; 536 | } 537 | -------------------------------------------------------------------------------- /CollectionView_Paging.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CollectionView_Paging.xcodeproj/xcuserdata/Sandip.xcuserdatad/xcschemes/CollectionView_Paging.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /CollectionView_Paging.xcodeproj/xcuserdata/Sandip.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CollectionView_Paging.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 39A1CD651CD5D3C600A60C72 16 | 17 | primary 18 | 19 | 20 | 39A1CD7E1CD5D3C600A60C72 21 | 22 | primary 23 | 24 | 25 | 39A1CD891CD5D3C600A60C72 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /CollectionView_Paging/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // CollectionView_Paging 4 | // 5 | // Created by Sandip on 5/1/16. 6 | // Copyright © 2016 Sandip. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /CollectionView_Paging/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // CollectionView_Paging 4 | // 5 | // Created by Sandip on 5/1/16. 6 | // Copyright © 2016 Sandip. 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 | -------------------------------------------------------------------------------- /CollectionView_Paging/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /CollectionView_Paging/Base.lproj/LaunchScreen.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 | -------------------------------------------------------------------------------- /CollectionView_Paging/Base.lproj/Main.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 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 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 | -------------------------------------------------------------------------------- /CollectionView_Paging/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /CollectionView_Paging/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // CollectionView_Paging 4 | // 5 | // Created by Sandip on 5/1/16. 6 | // Copyright © 2016 Sandip. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | @property (weak, nonatomic) IBOutlet UICollectionView *myCollectionView; 14 | @property (weak, nonatomic) IBOutlet UIPageControl *pageCtrl; 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /CollectionView_Paging/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // CollectionView_Paging 4 | // 5 | // Created by Sandip on 5/1/16. 6 | // Copyright © 2016 Sandip. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | { 13 | NSArray *collectionViewTitleArr; 14 | } 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | @synthesize myCollectionView; 20 | @synthesize pageCtrl; 21 | static NSString *cellID = @"myCell"; 22 | #pragma mark - View Controller Method 23 | - (void)viewDidLoad { 24 | [super viewDidLoad]; 25 | 26 | 27 | collectionViewTitleArr = [NSArray arrayWithObjects:@"Easy",@"Medium",@"Hard", nil]; 28 | [self.myCollectionView reloadData]; 29 | // Do any additional setup after loading the view, typically from a nib. 30 | } 31 | 32 | - (void)didReceiveMemoryWarning { 33 | [super didReceiveMemoryWarning]; 34 | // Dispose of any resources that can be recreated. 35 | } 36 | 37 | #pragma mark - CollectionView Method 38 | 39 | 40 | // The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath: 41 | 42 | 43 | - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView 44 | { 45 | NSInteger count = collectionViewTitleArr.count; 46 | pageCtrl.numberOfPages = count; 47 | return count; 48 | } 49 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section 50 | { 51 | return 10; 52 | } 53 | - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath 54 | { 55 | UICollectionReusableView *reusableview = nil; 56 | 57 | if (kind == UICollectionElementKindSectionHeader) { 58 | UIView *headerView = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HeaderView" forIndexPath:indexPath]; 59 | NSString *title = [collectionViewTitleArr objectAtIndex:indexPath.section]; 60 | UILabel *titleLbl = [headerView viewWithTag:5]; 61 | titleLbl.text = title; 62 | 63 | reusableview = headerView; 64 | } 65 | return reusableview; 66 | } 67 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath 68 | { 69 | UICollectionViewCell *cell= [collectionView dequeueReusableCellWithReuseIdentifier:cellID forIndexPath:indexPath]; 70 | UILabel *lbl = [cell viewWithTag:10]; 71 | lbl.text = [NSString stringWithFormat:@"%ld",(indexPath.section*10)+indexPath.row+1]; 72 | return cell; 73 | } 74 | -(void)scrollViewDidScroll:(UIScrollView *)scrollView 75 | { 76 | int index= scrollView.contentOffset.x / scrollView.frame.size.width; 77 | pageCtrl.currentPage = index; 78 | } 79 | 80 | - (CGSize)collectionView:(UICollectionView *)collectionView 81 | layout:(UICollectionViewLayout*)collectionViewLayout 82 | sizeForItemAtIndexPath:(NSIndexPath *)indexPath 83 | { 84 | return CGSizeMake(collectionView.frame.size.width/2.0f,ceilf(collectionView.frame.size.height/6.0f) ); 85 | } 86 | @end 87 | -------------------------------------------------------------------------------- /CollectionView_Paging/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CollectionView_Paging 4 | // 5 | // Created by Sandip on 5/1/16. 6 | // Copyright © 2016 Sandip. 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 | -------------------------------------------------------------------------------- /CollectionView_PagingTests/CollectionView_PagingTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CollectionView_PagingTests.m 3 | // CollectionView_PagingTests 4 | // 5 | // Created by Sandip on 5/1/16. 6 | // Copyright © 2016 Sandip. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CollectionView_PagingTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CollectionView_PagingTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /CollectionView_PagingTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | -------------------------------------------------------------------------------- /CollectionView_PagingUITests/CollectionView_PagingUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CollectionView_PagingUITests.m 3 | // CollectionView_PagingUITests 4 | // 5 | // Created by Sandip on 5/1/16. 6 | // Copyright © 2016 Sandip. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CollectionView_PagingUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CollectionView_PagingUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /CollectionView_PagingUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PagingWithCollectionView 2 | 3 | Simple App having collectionview with pagecontrol. 4 |

5 | 6 |

7 | -------------------------------------------------------------------------------- /working.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maniyarpayal/PagingWithCollectionView/94c671d4d9123232d8a157090fc2a61785df478c/working.gif --------------------------------------------------------------------------------