├── .gitignore ├── .swift-version ├── .travis.yml ├── Example ├── Example.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Example.xcscheme ├── Example.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Example │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ └── LaunchScreen.storyboard │ ├── FakeService.swift │ ├── Info.plist │ ├── NextPageLoaderCell.xib │ ├── NoResultsLoadingView.xib │ ├── NoResultsView.xib │ └── ViewController.swift ├── Podfile ├── Podfile.lock └── Pods │ ├── Local Podspecs │ └── JTTableViewController.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ └── project.pbxproj │ └── Target Support Files │ ├── JTTableViewController │ ├── Info.plist │ ├── JTTableViewController-dummy.m │ ├── JTTableViewController-prefix.pch │ ├── JTTableViewController-umbrella.h │ ├── JTTableViewController.modulemap │ └── JTTableViewController.xcconfig │ └── Pods-Example │ ├── Info.plist │ ├── Pods-Example-acknowledgements.markdown │ ├── Pods-Example-acknowledgements.plist │ ├── Pods-Example-dummy.m │ ├── Pods-Example-frameworks.sh │ ├── Pods-Example-resources.sh │ ├── Pods-Example-umbrella.h │ ├── Pods-Example.debug.xcconfig │ ├── Pods-Example.modulemap │ └── Pods-Example.release.xcconfig ├── JTTableViewController.podspec ├── LICENSE ├── Package.swift ├── README.md ├── Screens └── example.gif └── Source ├── JTFullTableViewController.swift └── JTTableViewController.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # Mac OS 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 4.2 -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode10 3 | env: 4 | global: 5 | - LC_CTYPE=en_US.UTF-8 6 | - LANG=en_US.UTF-8 7 | - WORKSPACE="Example/Example.xcworkspace" 8 | - SCHEME="Example" 9 | matrix: 10 | - DESTINATION="OS=12.0,name=iPhone XS" 11 | - DESTINATION="OS=11.4,name=iPhone X" 12 | - DESTINATION="OS=10.3.1,name=iPhone 7" 13 | script: 14 | - set -o pipefail 15 | - xcodebuild -version 16 | - xcodebuild -showsdks 17 | - xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug build | xcpretty 18 | -------------------------------------------------------------------------------- /Example/Example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 46E413E8831C30C52D7BF9C2 /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AFB054A821E31036C09A1E19 /* Pods_Example.framework */; }; 11 | AB5B12AD1DC6218B00268FC6 /* FakeService.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB5B12AC1DC6218B00268FC6 /* FakeService.swift */; }; 12 | AB5B12B11DC626AE00268FC6 /* NextPageLoaderCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AB5B12AE1DC626AE00268FC6 /* NextPageLoaderCell.xib */; }; 13 | AB5B12B21DC626AE00268FC6 /* NoResultsLoadingView.xib in Resources */ = {isa = PBXBuildFile; fileRef = AB5B12AF1DC626AE00268FC6 /* NoResultsLoadingView.xib */; }; 14 | AB5B12B31DC626AE00268FC6 /* NoResultsView.xib in Resources */ = {isa = PBXBuildFile; fileRef = AB5B12B01DC626AE00268FC6 /* NoResultsView.xib */; }; 15 | ABA1970F1DC620F20053F02E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = ABA1970E1DC620F20053F02E /* AppDelegate.swift */; }; 16 | ABA197111DC620F20053F02E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = ABA197101DC620F20053F02E /* ViewController.swift */; }; 17 | ABA197161DC620F20053F02E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = ABA197151DC620F20053F02E /* Assets.xcassets */; }; 18 | ABA197191DC620F20053F02E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = ABA197171DC620F20053F02E /* LaunchScreen.storyboard */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | 0C13FC3945A99D4A0E8FC370 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = ""; }; 23 | 33A815FF388D9068C576B21E /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = ""; }; 24 | AB5B12AC1DC6218B00268FC6 /* FakeService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FakeService.swift; sourceTree = ""; }; 25 | AB5B12AE1DC626AE00268FC6 /* NextPageLoaderCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = NextPageLoaderCell.xib; sourceTree = ""; }; 26 | AB5B12AF1DC626AE00268FC6 /* NoResultsLoadingView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = NoResultsLoadingView.xib; sourceTree = ""; }; 27 | AB5B12B01DC626AE00268FC6 /* NoResultsView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = NoResultsView.xib; sourceTree = ""; }; 28 | ABA1970B1DC620F20053F02E /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | ABA1970E1DC620F20053F02E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 30 | ABA197101DC620F20053F02E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 31 | ABA197151DC620F20053F02E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 32 | ABA197181DC620F20053F02E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 33 | ABA1971A1DC620F30053F02E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | AFB054A821E31036C09A1E19 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | ABA197081DC620F20053F02E /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | 46E413E8831C30C52D7BF9C2 /* Pods_Example.framework in Frameworks */, 43 | ); 44 | runOnlyForDeploymentPostprocessing = 0; 45 | }; 46 | /* End PBXFrameworksBuildPhase section */ 47 | 48 | /* Begin PBXGroup section */ 49 | ABA197021DC620F20053F02E = { 50 | isa = PBXGroup; 51 | children = ( 52 | ABA1970D1DC620F20053F02E /* Example */, 53 | ABA1970C1DC620F20053F02E /* Products */, 54 | C8F6DEEFC7F4640750F679B4 /* Pods */, 55 | C5463D374032591DC2867105 /* Frameworks */, 56 | ); 57 | sourceTree = ""; 58 | }; 59 | ABA1970C1DC620F20053F02E /* Products */ = { 60 | isa = PBXGroup; 61 | children = ( 62 | ABA1970B1DC620F20053F02E /* Example.app */, 63 | ); 64 | name = Products; 65 | sourceTree = ""; 66 | }; 67 | ABA1970D1DC620F20053F02E /* Example */ = { 68 | isa = PBXGroup; 69 | children = ( 70 | AB5B12AE1DC626AE00268FC6 /* NextPageLoaderCell.xib */, 71 | AB5B12AF1DC626AE00268FC6 /* NoResultsLoadingView.xib */, 72 | AB5B12B01DC626AE00268FC6 /* NoResultsView.xib */, 73 | ABA1970E1DC620F20053F02E /* AppDelegate.swift */, 74 | ABA197101DC620F20053F02E /* ViewController.swift */, 75 | ABA197151DC620F20053F02E /* Assets.xcassets */, 76 | ABA197171DC620F20053F02E /* LaunchScreen.storyboard */, 77 | ABA1971A1DC620F30053F02E /* Info.plist */, 78 | AB5B12AC1DC6218B00268FC6 /* FakeService.swift */, 79 | ); 80 | path = Example; 81 | sourceTree = ""; 82 | }; 83 | C5463D374032591DC2867105 /* Frameworks */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | AFB054A821E31036C09A1E19 /* Pods_Example.framework */, 87 | ); 88 | name = Frameworks; 89 | sourceTree = ""; 90 | }; 91 | C8F6DEEFC7F4640750F679B4 /* Pods */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 0C13FC3945A99D4A0E8FC370 /* Pods-Example.debug.xcconfig */, 95 | 33A815FF388D9068C576B21E /* Pods-Example.release.xcconfig */, 96 | ); 97 | name = Pods; 98 | sourceTree = ""; 99 | }; 100 | /* End PBXGroup section */ 101 | 102 | /* Begin PBXNativeTarget section */ 103 | ABA1970A1DC620F20053F02E /* Example */ = { 104 | isa = PBXNativeTarget; 105 | buildConfigurationList = ABA1971D1DC620F30053F02E /* Build configuration list for PBXNativeTarget "Example" */; 106 | buildPhases = ( 107 | 23A43E1B9C7EB556F9EDA610 /* [CP] Check Pods Manifest.lock */, 108 | ABA197071DC620F20053F02E /* Sources */, 109 | ABA197081DC620F20053F02E /* Frameworks */, 110 | ABA197091DC620F20053F02E /* Resources */, 111 | C8B02C13B7A314136E624C45 /* [CP] Embed Pods Frameworks */, 112 | ); 113 | buildRules = ( 114 | ); 115 | dependencies = ( 116 | ); 117 | name = Example; 118 | productName = Example; 119 | productReference = ABA1970B1DC620F20053F02E /* Example.app */; 120 | productType = "com.apple.product-type.application"; 121 | }; 122 | /* End PBXNativeTarget section */ 123 | 124 | /* Begin PBXProject section */ 125 | ABA197031DC620F20053F02E /* Project object */ = { 126 | isa = PBXProject; 127 | attributes = { 128 | LastSwiftUpdateCheck = 0800; 129 | LastUpgradeCheck = 0800; 130 | ORGANIZATIONNAME = EIVO; 131 | TargetAttributes = { 132 | ABA1970A1DC620F20053F02E = { 133 | CreatedOnToolsVersion = 8.0; 134 | DevelopmentTeam = 239CFKQ3YB; 135 | ProvisioningStyle = Automatic; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = ABA197061DC620F20053F02E /* Build configuration list for PBXProject "Example" */; 140 | compatibilityVersion = "Xcode 3.2"; 141 | developmentRegion = English; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = ABA197021DC620F20053F02E; 148 | productRefGroup = ABA1970C1DC620F20053F02E /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | ABA1970A1DC620F20053F02E /* Example */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | ABA197091DC620F20053F02E /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | ABA197191DC620F20053F02E /* LaunchScreen.storyboard in Resources */, 163 | ABA197161DC620F20053F02E /* Assets.xcassets in Resources */, 164 | AB5B12B11DC626AE00268FC6 /* NextPageLoaderCell.xib in Resources */, 165 | AB5B12B31DC626AE00268FC6 /* NoResultsView.xib in Resources */, 166 | AB5B12B21DC626AE00268FC6 /* NoResultsLoadingView.xib in Resources */, 167 | ); 168 | runOnlyForDeploymentPostprocessing = 0; 169 | }; 170 | /* End PBXResourcesBuildPhase section */ 171 | 172 | /* Begin PBXShellScriptBuildPhase section */ 173 | 23A43E1B9C7EB556F9EDA610 /* [CP] Check Pods Manifest.lock */ = { 174 | isa = PBXShellScriptBuildPhase; 175 | buildActionMask = 2147483647; 176 | files = ( 177 | ); 178 | inputPaths = ( 179 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 180 | "${PODS_ROOT}/Manifest.lock", 181 | ); 182 | name = "[CP] Check Pods Manifest.lock"; 183 | outputPaths = ( 184 | "$(DERIVED_FILE_DIR)/Pods-Example-checkManifestLockResult.txt", 185 | ); 186 | runOnlyForDeploymentPostprocessing = 0; 187 | shellPath = /bin/sh; 188 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 189 | showEnvVarsInLog = 0; 190 | }; 191 | C8B02C13B7A314136E624C45 /* [CP] Embed Pods Frameworks */ = { 192 | isa = PBXShellScriptBuildPhase; 193 | buildActionMask = 2147483647; 194 | files = ( 195 | ); 196 | inputPaths = ( 197 | "${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh", 198 | "${BUILT_PRODUCTS_DIR}/JTTableViewController/JTTableViewController.framework", 199 | ); 200 | name = "[CP] Embed Pods Frameworks"; 201 | outputPaths = ( 202 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/JTTableViewController.framework", 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | shellPath = /bin/sh; 206 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh\"\n"; 207 | showEnvVarsInLog = 0; 208 | }; 209 | /* End PBXShellScriptBuildPhase section */ 210 | 211 | /* Begin PBXSourcesBuildPhase section */ 212 | ABA197071DC620F20053F02E /* Sources */ = { 213 | isa = PBXSourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | AB5B12AD1DC6218B00268FC6 /* FakeService.swift in Sources */, 217 | ABA197111DC620F20053F02E /* ViewController.swift in Sources */, 218 | ABA1970F1DC620F20053F02E /* AppDelegate.swift in Sources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXSourcesBuildPhase section */ 223 | 224 | /* Begin PBXVariantGroup section */ 225 | ABA197171DC620F20053F02E /* LaunchScreen.storyboard */ = { 226 | isa = PBXVariantGroup; 227 | children = ( 228 | ABA197181DC620F20053F02E /* Base */, 229 | ); 230 | name = LaunchScreen.storyboard; 231 | sourceTree = ""; 232 | }; 233 | /* End PBXVariantGroup section */ 234 | 235 | /* Begin XCBuildConfiguration section */ 236 | ABA1971B1DC620F30053F02E /* Debug */ = { 237 | isa = XCBuildConfiguration; 238 | buildSettings = { 239 | ALWAYS_SEARCH_USER_PATHS = NO; 240 | CLANG_ANALYZER_NONNULL = YES; 241 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 242 | CLANG_CXX_LIBRARY = "libc++"; 243 | CLANG_ENABLE_MODULES = YES; 244 | CLANG_ENABLE_OBJC_ARC = YES; 245 | CLANG_WARN_BOOL_CONVERSION = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 248 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 254 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 255 | CLANG_WARN_UNREACHABLE_CODE = YES; 256 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 257 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 258 | COPY_PHASE_STRIP = NO; 259 | DEBUG_INFORMATION_FORMAT = dwarf; 260 | ENABLE_STRICT_OBJC_MSGSEND = YES; 261 | ENABLE_TESTABILITY = YES; 262 | GCC_C_LANGUAGE_STANDARD = gnu99; 263 | GCC_DYNAMIC_NO_PIC = NO; 264 | GCC_NO_COMMON_BLOCKS = YES; 265 | GCC_OPTIMIZATION_LEVEL = 0; 266 | GCC_PREPROCESSOR_DEFINITIONS = ( 267 | "DEBUG=1", 268 | "$(inherited)", 269 | ); 270 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 271 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 272 | GCC_WARN_UNDECLARED_SELECTOR = YES; 273 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 274 | GCC_WARN_UNUSED_FUNCTION = YES; 275 | GCC_WARN_UNUSED_VARIABLE = YES; 276 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 277 | MTL_ENABLE_DEBUG_INFO = YES; 278 | ONLY_ACTIVE_ARCH = YES; 279 | SDKROOT = iphoneos; 280 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 281 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 282 | }; 283 | name = Debug; 284 | }; 285 | ABA1971C1DC620F30053F02E /* Release */ = { 286 | isa = XCBuildConfiguration; 287 | buildSettings = { 288 | ALWAYS_SEARCH_USER_PATHS = NO; 289 | CLANG_ANALYZER_NONNULL = YES; 290 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 291 | CLANG_CXX_LIBRARY = "libc++"; 292 | CLANG_ENABLE_MODULES = YES; 293 | CLANG_ENABLE_OBJC_ARC = YES; 294 | CLANG_WARN_BOOL_CONVERSION = YES; 295 | CLANG_WARN_CONSTANT_CONVERSION = YES; 296 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 297 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 298 | CLANG_WARN_EMPTY_BODY = YES; 299 | CLANG_WARN_ENUM_CONVERSION = YES; 300 | CLANG_WARN_INFINITE_RECURSION = YES; 301 | CLANG_WARN_INT_CONVERSION = YES; 302 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 303 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 304 | CLANG_WARN_UNREACHABLE_CODE = YES; 305 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 306 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 307 | COPY_PHASE_STRIP = NO; 308 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 309 | ENABLE_NS_ASSERTIONS = NO; 310 | ENABLE_STRICT_OBJC_MSGSEND = YES; 311 | GCC_C_LANGUAGE_STANDARD = gnu99; 312 | GCC_NO_COMMON_BLOCKS = YES; 313 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 314 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 315 | GCC_WARN_UNDECLARED_SELECTOR = YES; 316 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 317 | GCC_WARN_UNUSED_FUNCTION = YES; 318 | GCC_WARN_UNUSED_VARIABLE = YES; 319 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 320 | MTL_ENABLE_DEBUG_INFO = NO; 321 | SDKROOT = iphoneos; 322 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 323 | VALIDATE_PRODUCT = YES; 324 | }; 325 | name = Release; 326 | }; 327 | ABA1971E1DC620F30053F02E /* Debug */ = { 328 | isa = XCBuildConfiguration; 329 | baseConfigurationReference = 0C13FC3945A99D4A0E8FC370 /* Pods-Example.debug.xcconfig */; 330 | buildSettings = { 331 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 332 | DEVELOPMENT_TEAM = 239CFKQ3YB; 333 | INFOPLIST_FILE = Example/Info.plist; 334 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 335 | PRODUCT_BUNDLE_IDENTIFIER = fr.eivo.Example; 336 | PRODUCT_NAME = "$(TARGET_NAME)"; 337 | SWIFT_VERSION = 4.2; 338 | }; 339 | name = Debug; 340 | }; 341 | ABA1971F1DC620F30053F02E /* Release */ = { 342 | isa = XCBuildConfiguration; 343 | baseConfigurationReference = 33A815FF388D9068C576B21E /* Pods-Example.release.xcconfig */; 344 | buildSettings = { 345 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 346 | DEVELOPMENT_TEAM = 239CFKQ3YB; 347 | INFOPLIST_FILE = Example/Info.plist; 348 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 349 | PRODUCT_BUNDLE_IDENTIFIER = fr.eivo.Example; 350 | PRODUCT_NAME = "$(TARGET_NAME)"; 351 | SWIFT_VERSION = 4.2; 352 | }; 353 | name = Release; 354 | }; 355 | /* End XCBuildConfiguration section */ 356 | 357 | /* Begin XCConfigurationList section */ 358 | ABA197061DC620F20053F02E /* Build configuration list for PBXProject "Example" */ = { 359 | isa = XCConfigurationList; 360 | buildConfigurations = ( 361 | ABA1971B1DC620F30053F02E /* Debug */, 362 | ABA1971C1DC620F30053F02E /* Release */, 363 | ); 364 | defaultConfigurationIsVisible = 0; 365 | defaultConfigurationName = Release; 366 | }; 367 | ABA1971D1DC620F30053F02E /* Build configuration list for PBXNativeTarget "Example" */ = { 368 | isa = XCConfigurationList; 369 | buildConfigurations = ( 370 | ABA1971E1DC620F30053F02E /* Debug */, 371 | ABA1971F1DC620F30053F02E /* Release */, 372 | ); 373 | defaultConfigurationIsVisible = 0; 374 | defaultConfigurationName = Release; 375 | }; 376 | /* End XCConfigurationList section */ 377 | }; 378 | rootObject = ABA197031DC620F20053F02E /* Project object */; 379 | } 380 | -------------------------------------------------------------------------------- /Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /Example/Example.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Example/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Example 4 | // 5 | // Created by Jonathan on 30/10/16. 6 | // Copyright © 2016 EIVO. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 | 18 | window = UIWindow(frame: UIScreen.main.bounds) 19 | window?.makeKeyAndVisible() 20 | window?.rootViewController = UINavigationController(rootViewController: ViewController()) 21 | 22 | return true 23 | } 24 | 25 | func applicationWillResignActive(_ application: UIApplication) { 26 | // 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. 27 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 28 | } 29 | 30 | func applicationDidEnterBackground(_ application: UIApplication) { 31 | // 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. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | func applicationWillEnterForeground(_ application: UIApplication) { 36 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 37 | } 38 | 39 | func applicationDidBecomeActive(_ application: UIApplication) { 40 | // 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. 41 | } 42 | 43 | func applicationWillTerminate(_ application: UIApplication) { 44 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 45 | } 46 | 47 | 48 | } 49 | 50 | -------------------------------------------------------------------------------- /Example/Example/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 | } -------------------------------------------------------------------------------- /Example/Example/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 | -------------------------------------------------------------------------------- /Example/Example/FakeService.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FakeService.swift 3 | // Example 4 | // 5 | // Created by Jonathan on 30/10/16. 6 | // Copyright © 2016 EIVO. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class FakeService { 12 | 13 | class func retrieve (offset: Int = 0, completion: @escaping ((Error?, [String]?) -> Void)) { 14 | DispatchQueue.main.asyncAfter(deadline: .now() + 2) { 15 | let fakeData = self.fakeData() 16 | 17 | var pageSize = 10 18 | 19 | if((offset + pageSize) >= fakeData.count) { 20 | pageSize = fakeData.count - offset 21 | } 22 | 23 | var results = [String]() 24 | for i in offset..<(offset + pageSize) { 25 | results.append(fakeData[i]) 26 | } 27 | 28 | completion(nil, results) 29 | } 30 | } 31 | 32 | private class func fakeData () -> [String] { 33 | return ["Dock Gaylord", "Mr. Izabella Ziemann", "Haskell Medhurst DDS", "Rebeka Torp", "Shannon Kub", "Kara Donnelly", "Johnathan Kuphal", "Jermaine Shanahan", "Mrs. Rudy Hilll", "Nathen Kutch Jr.", "Elissa Lehner", "Emmanuel Cruickshank", "Annette Bechtelar", "Ashleigh Wolff", "Roberto Crist", "Rocky Stamm", "Adolphus Streich MD", "Andres Rau", "Ms. Opal Olson", "Glenda Balistreri", "Dr. Javon Sipes", "Devante Leuschke", "Liliana Bins", "Mr. Rosie VonRueden", "Nina Batz", "Mrs. Garth Rau", "Jeffrey Bauch", "Judge Schmitt", "Raymundo Rau", "Mr. Kayley Bruen", "Wava Reilly", "Ms. Pablo Mosciski", "Estrella Cremin", "Bertram Gutmann", "Raleigh Schuppe", "Dr. Jace Kuvalis", "Kelly Terry", "Mr. Broderick Crooks", "Tevin Reinger", "Mckenna Graham V", "Howard Kuhn", "Payton Terry", "Ofelia Osinski", "Lera Bogan", "Luz Gutmann DVM", "Bulah Schaefer", "Elissa Williamson", "Joanne Schamberger", "Orpha Eichmann", "Haylee Hartmann", "Cary Toy", "Danial Marvin", "Mrs. Wilbert Reynolds", "Dr. Mable Ledner", "Albin Leffler", "Osbaldo Marks", "Omari Wolf MD", "Isabelle Schroeder", "Douglas Kohler", "Tomasa Reichert", "Larue Von", "Taylor Roberts MD", "Mose Frami", "Patrick Kautzer I", "Godfrey Gottlieb V", "Pearlie Kuhlman MD", "Dixie Kiehn I", "Karianne Larson", "Terry Daugherty Sr.", "Newell Pfannerstill I", "Lola Johns", "Freeda Wintheiser PhD", "Yolanda Abbott", "Lauryn Howe", "June Kautzer", "Zoie Bradtke", "Ms. Vanessa Watsica", "Janae Davis", "Norene Harris", "Brooks Ebert Sr."] 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Example/Example/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 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIRequiredDeviceCapabilities 26 | 27 | armv7 28 | 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Example/Example/NextPageLoaderCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Example/Example/NoResultsLoadingView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/Example/NoResultsView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /Example/Example/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Example 4 | // 5 | // Created by Jonathan on 30/10/16. 6 | // Copyright © 2016 EIVO. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import JTTableViewController 11 | 12 | class ViewController: JTFullTableViewController { 13 | 14 | var lastIndex = 0 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | 19 | // Optional 20 | // Don't display empty cells 21 | self.tableView?.tableFooterView = UIView() 22 | 23 | // One of the many way to determine the cell for a tableView 24 | // The tableView is bind to the controller directly in the storyboard, no need to set the delegate and the dataSource 25 | self.tableView?.register(UITableViewCell.self, forCellReuseIdentifier: "cell") 26 | 27 | // Optional 28 | // Load nextPageLoaderCell, this view is bind to the controller directly in the nib 29 | Bundle.main.loadNibNamed("NextPageLoaderCell", owner: self, options: nil) 30 | 31 | // Optional 32 | // Load noResultsView, this view is bind to the controller directly in the nib 33 | Bundle.main.loadNibNamed("NoResultsView", owner: self, options: nil) 34 | 35 | // Optional 36 | // Load noResultsLoadingView, this view is bind to the controller directly in the nib 37 | Bundle.main.loadNibNamed("NoResultsLoadingView", owner: self, options: nil) 38 | } 39 | 40 | override func viewDidAppear(_ animated: Bool) { 41 | super.viewDidAppear(animated) 42 | 43 | if !self.isFetching { 44 | fetchResults() 45 | } 46 | } 47 | 48 | override func fetchResults() { 49 | self.resetResults() 50 | 51 | super.fetchResults() 52 | 53 | lastIndex = 0 54 | 55 | let lastRequestId = self.lastRequestId 56 | 57 | FakeService.retrieve { (error, results) in 58 | if let error = error { 59 | self.didFailedToFetchResults(error: error, lastRequestId: lastRequestId) 60 | } 61 | else if let results = results { 62 | self.didFetchResults(results: results, lastRequestId: lastRequestId) { 63 | self.lastIndex += results.count 64 | } 65 | } 66 | } 67 | } 68 | 69 | override func fetchNextResults() { 70 | super.fetchNextResults() 71 | 72 | let lastRequestId = self.lastRequestId 73 | 74 | FakeService.retrieve(offset: lastIndex) { (error, results) in 75 | if let error = error { 76 | self.didFailedToFetchResults(error: error, lastRequestId: lastRequestId) 77 | } 78 | else if let results = results { 79 | self.didFetchNextResults(results: results, lastRequestId: lastRequestId) { 80 | self.lastIndex += results.count 81 | } 82 | } 83 | } 84 | } 85 | 86 | override func jt_tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 87 | let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) 88 | cell.textLabel?.text = self.results[indexPath.row] 89 | return cell 90 | } 91 | 92 | } 93 | 94 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | 3 | platform :ios, "9.0" 4 | use_frameworks! 5 | 6 | target 'Example' do 7 | 8 | pod 'JTTableViewController', path: '..' 9 | 10 | end 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - JTTableViewController (2.1.4) 3 | 4 | DEPENDENCIES: 5 | - JTTableViewController (from `..`) 6 | 7 | EXTERNAL SOURCES: 8 | JTTableViewController: 9 | :path: ".." 10 | 11 | SPEC CHECKSUMS: 12 | JTTableViewController: a59f53652ad68881f5ab31ec69d6d01b27db5615 13 | 14 | PODFILE CHECKSUM: d1393c69b80fdf59d735ab405993c4e9e338446b 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/JTTableViewController.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "JTTableViewController", 3 | "version": "2.1.4", 4 | "summary": "A ViewController with a tableView which manage pagination and loaders for iOS.", 5 | "homepage": "https://github.com/jonathantribouharet/JTTableViewController", 6 | "license": { 7 | "type": "MIT" 8 | }, 9 | "authors": { 10 | "Jonathan VUKOVICH TRIBOUHARET": "jonathan.tribouharet@gmail.com" 11 | }, 12 | "platforms": { 13 | "ios": "8.0" 14 | }, 15 | "source": { 16 | "git": "https://github.com/jonathantribouharet/JTTableViewController.git", 17 | "tag": "2.1.4" 18 | }, 19 | "source_files": "Source/*.swift", 20 | "screenshots": [ 21 | "https://raw.githubusercontent.com/jonathantribouharet/JTTableViewController/master/Screens/example.gif" 22 | ], 23 | "swift_version": "4.2" 24 | } 25 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - JTTableViewController (2.1.4) 3 | 4 | DEPENDENCIES: 5 | - JTTableViewController (from `..`) 6 | 7 | EXTERNAL SOURCES: 8 | JTTableViewController: 9 | :path: ".." 10 | 11 | SPEC CHECKSUMS: 12 | JTTableViewController: a59f53652ad68881f5ab31ec69d6d01b27db5615 13 | 14 | PODFILE CHECKSUM: d1393c69b80fdf59d735ab405993c4e9e338446b 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 161173252055574E39EC2DE8522ECE3F /* JTFullTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AE54522B4814ED1F7D4639706D78F0E /* JTFullTableViewController.swift */; }; 11 | 5E718F25EB9E9A85517A3E627AC00D4D /* JTTableViewController-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 700CF989DF1C58647A18D62B4A01BBA5 /* JTTableViewController-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 61E28A92A6DD9FB10C885880780973E8 /* JTTableViewController-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F2538DA3D76659D9702B6CA1D98043CA /* JTTableViewController-dummy.m */; }; 13 | 6A2F667354602D4DE80FDC8FB9522F1C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */; }; 14 | B1FF02F68F0FD0290DFD497AA259D6C1 /* Pods-Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */; }; 15 | B450BEE80C27DF09DA39825ABB6D8E07 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */; }; 16 | C8FFA0BE745D49DE077C77043B6ED61E /* JTTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0BF4C11958AD1BA51F972A4558C4E350 /* JTTableViewController.swift */; }; 17 | D133099DDCDE8EC96E1FDEE545A8CF41 /* Pods-Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 863F240B55F9C509FD0AC73F1D040E19 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 2888BC5E37ED4847CCDD0ECEF0CD915E; 26 | remoteInfo = JTTableViewController; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 004954B8C894F0714791DB71633BCB18 /* JTTableViewController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = JTTableViewController.framework; path = JTTableViewController.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 044AA3E23F71470C9B5F50D44720EA0D /* Pods-Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Example-resources.sh"; sourceTree = ""; }; 33 | 0BF4C11958AD1BA51F972A4558C4E350 /* JTTableViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JTTableViewController.swift; path = Source/JTTableViewController.swift; sourceTree = ""; }; 34 | 0D94312AE45801302B9D7F397DF8BCCF /* JTTableViewController.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JTTableViewController.xcconfig; sourceTree = ""; }; 35 | 11434BC759D12F57876FBB74A4775E74 /* Pods-Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Example-acknowledgements.plist"; sourceTree = ""; }; 36 | 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Example-umbrella.h"; sourceTree = ""; }; 37 | 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Example-dummy.m"; sourceTree = ""; }; 38 | 25A37D4D536CC5988A439441117C41F4 /* Pods-Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Example.modulemap"; sourceTree = ""; }; 39 | 2D08687BE5927B4E6006702E57C432B4 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 332A2DCD1F65F51FEDE162718BC2E65B /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 41 | 3ADE9E5655579DB0F79DC9C80758673C /* Pods-Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Example-acknowledgements.markdown"; sourceTree = ""; }; 42 | 3F3EFEBDE6702DEFDFFF9D5C6DBC3773 /* Pods-Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Example-frameworks.sh"; sourceTree = ""; }; 43 | 5AE54522B4814ED1F7D4639706D78F0E /* JTFullTableViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JTFullTableViewController.swift; path = Source/JTFullTableViewController.swift; sourceTree = ""; }; 44 | 5B81C04F8E84EAE60AE15C8695031A5F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 5C07518173DDBCAFF0E2CD72D3F0DF59 /* JTTableViewController.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = JTTableViewController.modulemap; sourceTree = ""; }; 46 | 700CF989DF1C58647A18D62B4A01BBA5 /* JTTableViewController-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JTTableViewController-umbrella.h"; sourceTree = ""; }; 47 | 80787F0980DC21AD5311F7DC1FD5F1B3 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 48 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Example.release.xcconfig"; sourceTree = ""; }; 50 | D1C83A38475645F0BBBCD3066A65DDAF /* JTTableViewController-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JTTableViewController-prefix.pch"; sourceTree = ""; }; 51 | D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 52 | E223EB4BA723C0E03C2BFA809482052A /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Example.framework; path = "Pods-Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | E9A497C0E85321D1462D5FECE45F0C1E /* JTTableViewController.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = JTTableViewController.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 54 | EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Example.debug.xcconfig"; sourceTree = ""; }; 55 | F2538DA3D76659D9702B6CA1D98043CA /* JTTableViewController-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "JTTableViewController-dummy.m"; sourceTree = ""; }; 56 | /* End PBXFileReference section */ 57 | 58 | /* Begin PBXFrameworksBuildPhase section */ 59 | 3065219144413641C4C93C34E5272520 /* Frameworks */ = { 60 | isa = PBXFrameworksBuildPhase; 61 | buildActionMask = 2147483647; 62 | files = ( 63 | B450BEE80C27DF09DA39825ABB6D8E07 /* Foundation.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | F9A8ADF1E30B9C0D8DBA7173CBC61F09 /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 6A2F667354602D4DE80FDC8FB9522F1C /* Foundation.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 1B5ECB992A56AE0C70DC72D88BB90B05 /* Pods-Example */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 5B81C04F8E84EAE60AE15C8695031A5F /* Info.plist */, 82 | 25A37D4D536CC5988A439441117C41F4 /* Pods-Example.modulemap */, 83 | 3ADE9E5655579DB0F79DC9C80758673C /* Pods-Example-acknowledgements.markdown */, 84 | 11434BC759D12F57876FBB74A4775E74 /* Pods-Example-acknowledgements.plist */, 85 | 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */, 86 | 3F3EFEBDE6702DEFDFFF9D5C6DBC3773 /* Pods-Example-frameworks.sh */, 87 | 044AA3E23F71470C9B5F50D44720EA0D /* Pods-Example-resources.sh */, 88 | 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */, 89 | EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */, 90 | A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */, 91 | ); 92 | name = "Pods-Example"; 93 | path = "Target Support Files/Pods-Example"; 94 | sourceTree = ""; 95 | }; 96 | 39262C642A218ECF4C237A9CA474D839 /* Development Pods */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 755A82F665DA14656F47C7B6CFF3B518 /* JTTableViewController */, 100 | ); 101 | name = "Development Pods"; 102 | sourceTree = ""; 103 | }; 104 | 44D5347904CF754D6785B84253F2574A /* iOS */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */, 108 | ); 109 | name = iOS; 110 | sourceTree = ""; 111 | }; 112 | 67004AA91DAA8B770155F1A22F836EA4 /* Pod */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | E9A497C0E85321D1462D5FECE45F0C1E /* JTTableViewController.podspec */, 116 | 80787F0980DC21AD5311F7DC1FD5F1B3 /* LICENSE */, 117 | 332A2DCD1F65F51FEDE162718BC2E65B /* README.md */, 118 | ); 119 | name = Pod; 120 | sourceTree = ""; 121 | }; 122 | 6A4F6A14E3FB951290E4531728B7A461 /* Targets Support Files */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 1B5ECB992A56AE0C70DC72D88BB90B05 /* Pods-Example */, 126 | ); 127 | name = "Targets Support Files"; 128 | sourceTree = ""; 129 | }; 130 | 755A82F665DA14656F47C7B6CFF3B518 /* JTTableViewController */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 5AE54522B4814ED1F7D4639706D78F0E /* JTFullTableViewController.swift */, 134 | 0BF4C11958AD1BA51F972A4558C4E350 /* JTTableViewController.swift */, 135 | 67004AA91DAA8B770155F1A22F836EA4 /* Pod */, 136 | 99074A48AC9FBCE007DC2AA996BE5E5F /* Support Files */, 137 | ); 138 | name = JTTableViewController; 139 | path = ../..; 140 | sourceTree = ""; 141 | }; 142 | 7937F77CD3E90F3813AD9DE6F5188D4B /* Products */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 004954B8C894F0714791DB71633BCB18 /* JTTableViewController.framework */, 146 | E223EB4BA723C0E03C2BFA809482052A /* Pods_Example.framework */, 147 | ); 148 | name = Products; 149 | sourceTree = ""; 150 | }; 151 | 7DB346D0F39D3F0E887471402A8071AB = { 152 | isa = PBXGroup; 153 | children = ( 154 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 155 | 39262C642A218ECF4C237A9CA474D839 /* Development Pods */, 156 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 157 | 7937F77CD3E90F3813AD9DE6F5188D4B /* Products */, 158 | 6A4F6A14E3FB951290E4531728B7A461 /* Targets Support Files */, 159 | ); 160 | sourceTree = ""; 161 | }; 162 | 99074A48AC9FBCE007DC2AA996BE5E5F /* Support Files */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | 2D08687BE5927B4E6006702E57C432B4 /* Info.plist */, 166 | 5C07518173DDBCAFF0E2CD72D3F0DF59 /* JTTableViewController.modulemap */, 167 | 0D94312AE45801302B9D7F397DF8BCCF /* JTTableViewController.xcconfig */, 168 | F2538DA3D76659D9702B6CA1D98043CA /* JTTableViewController-dummy.m */, 169 | D1C83A38475645F0BBBCD3066A65DDAF /* JTTableViewController-prefix.pch */, 170 | 700CF989DF1C58647A18D62B4A01BBA5 /* JTTableViewController-umbrella.h */, 171 | ); 172 | name = "Support Files"; 173 | path = "Example/Pods/Target Support Files/JTTableViewController"; 174 | sourceTree = ""; 175 | }; 176 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 44D5347904CF754D6785B84253F2574A /* iOS */, 180 | ); 181 | name = Frameworks; 182 | sourceTree = ""; 183 | }; 184 | /* End PBXGroup section */ 185 | 186 | /* Begin PBXHeadersBuildPhase section */ 187 | 42B1759484AE2BCCA745EF78D64ED407 /* Headers */ = { 188 | isa = PBXHeadersBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | D133099DDCDE8EC96E1FDEE545A8CF41 /* Pods-Example-umbrella.h in Headers */, 192 | ); 193 | runOnlyForDeploymentPostprocessing = 0; 194 | }; 195 | EB4569367AEA387B66ED7A963E4714C8 /* Headers */ = { 196 | isa = PBXHeadersBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | 5E718F25EB9E9A85517A3E627AC00D4D /* JTTableViewController-umbrella.h in Headers */, 200 | ); 201 | runOnlyForDeploymentPostprocessing = 0; 202 | }; 203 | /* End PBXHeadersBuildPhase section */ 204 | 205 | /* Begin PBXNativeTarget section */ 206 | 2888BC5E37ED4847CCDD0ECEF0CD915E /* JTTableViewController */ = { 207 | isa = PBXNativeTarget; 208 | buildConfigurationList = EB7A38CFE55A3B398515A014AF4F0038 /* Build configuration list for PBXNativeTarget "JTTableViewController" */; 209 | buildPhases = ( 210 | EB4569367AEA387B66ED7A963E4714C8 /* Headers */, 211 | EFA0EDB60D0445FB6A60614B71F530C6 /* Sources */, 212 | F9A8ADF1E30B9C0D8DBA7173CBC61F09 /* Frameworks */, 213 | DABB127527495B37BF47CFF9C0554414 /* Resources */, 214 | ); 215 | buildRules = ( 216 | ); 217 | dependencies = ( 218 | ); 219 | name = JTTableViewController; 220 | productName = JTTableViewController; 221 | productReference = 004954B8C894F0714791DB71633BCB18 /* JTTableViewController.framework */; 222 | productType = "com.apple.product-type.framework"; 223 | }; 224 | 8BBB7E343C4A5085FDBE1D0FEA2D9890 /* Pods-Example */ = { 225 | isa = PBXNativeTarget; 226 | buildConfigurationList = ECB5ECA0F4B6867BE22CF7BDF5FCCE97 /* Build configuration list for PBXNativeTarget "Pods-Example" */; 227 | buildPhases = ( 228 | 42B1759484AE2BCCA745EF78D64ED407 /* Headers */, 229 | 42FE056F8D11C3E9749791346EFEF957 /* Sources */, 230 | 3065219144413641C4C93C34E5272520 /* Frameworks */, 231 | 4F353E1CD550FA0DC65F1DBCF8A85126 /* Resources */, 232 | ); 233 | buildRules = ( 234 | ); 235 | dependencies = ( 236 | 173FA7813D7BD063DD192557F1A8E5FB /* PBXTargetDependency */, 237 | ); 238 | name = "Pods-Example"; 239 | productName = "Pods-Example"; 240 | productReference = E223EB4BA723C0E03C2BFA809482052A /* Pods_Example.framework */; 241 | productType = "com.apple.product-type.framework"; 242 | }; 243 | /* End PBXNativeTarget section */ 244 | 245 | /* Begin PBXProject section */ 246 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 247 | isa = PBXProject; 248 | attributes = { 249 | LastSwiftUpdateCheck = 0930; 250 | LastUpgradeCheck = 0930; 251 | }; 252 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 253 | compatibilityVersion = "Xcode 3.2"; 254 | developmentRegion = English; 255 | hasScannedForEncodings = 0; 256 | knownRegions = ( 257 | en, 258 | ); 259 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 260 | productRefGroup = 7937F77CD3E90F3813AD9DE6F5188D4B /* Products */; 261 | projectDirPath = ""; 262 | projectRoot = ""; 263 | targets = ( 264 | 2888BC5E37ED4847CCDD0ECEF0CD915E /* JTTableViewController */, 265 | 8BBB7E343C4A5085FDBE1D0FEA2D9890 /* Pods-Example */, 266 | ); 267 | }; 268 | /* End PBXProject section */ 269 | 270 | /* Begin PBXResourcesBuildPhase section */ 271 | 4F353E1CD550FA0DC65F1DBCF8A85126 /* Resources */ = { 272 | isa = PBXResourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | }; 278 | DABB127527495B37BF47CFF9C0554414 /* Resources */ = { 279 | isa = PBXResourcesBuildPhase; 280 | buildActionMask = 2147483647; 281 | files = ( 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | }; 285 | /* End PBXResourcesBuildPhase section */ 286 | 287 | /* Begin PBXSourcesBuildPhase section */ 288 | 42FE056F8D11C3E9749791346EFEF957 /* Sources */ = { 289 | isa = PBXSourcesBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | B1FF02F68F0FD0290DFD497AA259D6C1 /* Pods-Example-dummy.m in Sources */, 293 | ); 294 | runOnlyForDeploymentPostprocessing = 0; 295 | }; 296 | EFA0EDB60D0445FB6A60614B71F530C6 /* Sources */ = { 297 | isa = PBXSourcesBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | 161173252055574E39EC2DE8522ECE3F /* JTFullTableViewController.swift in Sources */, 301 | 61E28A92A6DD9FB10C885880780973E8 /* JTTableViewController-dummy.m in Sources */, 302 | C8FFA0BE745D49DE077C77043B6ED61E /* JTTableViewController.swift in Sources */, 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | }; 306 | /* End PBXSourcesBuildPhase section */ 307 | 308 | /* Begin PBXTargetDependency section */ 309 | 173FA7813D7BD063DD192557F1A8E5FB /* PBXTargetDependency */ = { 310 | isa = PBXTargetDependency; 311 | name = JTTableViewController; 312 | target = 2888BC5E37ED4847CCDD0ECEF0CD915E /* JTTableViewController */; 313 | targetProxy = 863F240B55F9C509FD0AC73F1D040E19 /* PBXContainerItemProxy */; 314 | }; 315 | /* End PBXTargetDependency section */ 316 | 317 | /* Begin XCBuildConfiguration section */ 318 | 23D9FE9B289D69ABEAD5D76C127F0A0B /* Debug */ = { 319 | isa = XCBuildConfiguration; 320 | baseConfigurationReference = 0D94312AE45801302B9D7F397DF8BCCF /* JTTableViewController.xcconfig */; 321 | buildSettings = { 322 | CODE_SIGN_IDENTITY = ""; 323 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 324 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 325 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 326 | CURRENT_PROJECT_VERSION = 1; 327 | DEFINES_MODULE = YES; 328 | DYLIB_COMPATIBILITY_VERSION = 1; 329 | DYLIB_CURRENT_VERSION = 1; 330 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 331 | GCC_PREFIX_HEADER = "Target Support Files/JTTableViewController/JTTableViewController-prefix.pch"; 332 | INFOPLIST_FILE = "Target Support Files/JTTableViewController/Info.plist"; 333 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 334 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 335 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 336 | MODULEMAP_FILE = "Target Support Files/JTTableViewController/JTTableViewController.modulemap"; 337 | PRODUCT_MODULE_NAME = JTTableViewController; 338 | PRODUCT_NAME = JTTableViewController; 339 | SDKROOT = iphoneos; 340 | SKIP_INSTALL = YES; 341 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 342 | SWIFT_VERSION = 4.2; 343 | TARGETED_DEVICE_FAMILY = "1,2"; 344 | VERSIONING_SYSTEM = "apple-generic"; 345 | VERSION_INFO_PREFIX = ""; 346 | }; 347 | name = Debug; 348 | }; 349 | 5DE19CECB206ACCCACF04D62F93FFDA6 /* Release */ = { 350 | isa = XCBuildConfiguration; 351 | buildSettings = { 352 | ALWAYS_SEARCH_USER_PATHS = NO; 353 | CLANG_ANALYZER_NONNULL = YES; 354 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 355 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 356 | CLANG_CXX_LIBRARY = "libc++"; 357 | CLANG_ENABLE_MODULES = YES; 358 | CLANG_ENABLE_OBJC_ARC = YES; 359 | CLANG_ENABLE_OBJC_WEAK = YES; 360 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 361 | CLANG_WARN_BOOL_CONVERSION = YES; 362 | CLANG_WARN_COMMA = YES; 363 | CLANG_WARN_CONSTANT_CONVERSION = YES; 364 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 365 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 366 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 367 | CLANG_WARN_EMPTY_BODY = YES; 368 | CLANG_WARN_ENUM_CONVERSION = YES; 369 | CLANG_WARN_INFINITE_RECURSION = YES; 370 | CLANG_WARN_INT_CONVERSION = YES; 371 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 372 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 373 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 374 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 375 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 376 | CLANG_WARN_STRICT_PROTOTYPES = YES; 377 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 378 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 379 | CLANG_WARN_UNREACHABLE_CODE = YES; 380 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 381 | CODE_SIGNING_ALLOWED = NO; 382 | CODE_SIGNING_REQUIRED = NO; 383 | COPY_PHASE_STRIP = NO; 384 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 385 | ENABLE_NS_ASSERTIONS = NO; 386 | ENABLE_STRICT_OBJC_MSGSEND = YES; 387 | GCC_C_LANGUAGE_STANDARD = gnu11; 388 | GCC_NO_COMMON_BLOCKS = YES; 389 | GCC_PREPROCESSOR_DEFINITIONS = ( 390 | "POD_CONFIGURATION_RELEASE=1", 391 | "$(inherited)", 392 | ); 393 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 394 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 395 | GCC_WARN_UNDECLARED_SELECTOR = YES; 396 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 397 | GCC_WARN_UNUSED_FUNCTION = YES; 398 | GCC_WARN_UNUSED_VARIABLE = YES; 399 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 400 | MTL_ENABLE_DEBUG_INFO = NO; 401 | MTL_FAST_MATH = YES; 402 | PRODUCT_NAME = "$(TARGET_NAME)"; 403 | STRIP_INSTALLED_PRODUCT = NO; 404 | SWIFT_COMPILATION_MODE = wholemodule; 405 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 406 | SWIFT_VERSION = 4.2; 407 | SYMROOT = "${SRCROOT}/../build"; 408 | }; 409 | name = Release; 410 | }; 411 | 858D01EEFE984249A9581D18DBEA53F1 /* Debug */ = { 412 | isa = XCBuildConfiguration; 413 | buildSettings = { 414 | ALWAYS_SEARCH_USER_PATHS = NO; 415 | CLANG_ANALYZER_NONNULL = YES; 416 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 417 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 418 | CLANG_CXX_LIBRARY = "libc++"; 419 | CLANG_ENABLE_MODULES = YES; 420 | CLANG_ENABLE_OBJC_ARC = YES; 421 | CLANG_ENABLE_OBJC_WEAK = YES; 422 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 423 | CLANG_WARN_BOOL_CONVERSION = YES; 424 | CLANG_WARN_COMMA = YES; 425 | CLANG_WARN_CONSTANT_CONVERSION = YES; 426 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 427 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 428 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 429 | CLANG_WARN_EMPTY_BODY = YES; 430 | CLANG_WARN_ENUM_CONVERSION = YES; 431 | CLANG_WARN_INFINITE_RECURSION = YES; 432 | CLANG_WARN_INT_CONVERSION = YES; 433 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 434 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 435 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 436 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 437 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 438 | CLANG_WARN_STRICT_PROTOTYPES = YES; 439 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 440 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 441 | CLANG_WARN_UNREACHABLE_CODE = YES; 442 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 443 | CODE_SIGNING_ALLOWED = NO; 444 | CODE_SIGNING_REQUIRED = NO; 445 | COPY_PHASE_STRIP = NO; 446 | DEBUG_INFORMATION_FORMAT = dwarf; 447 | ENABLE_STRICT_OBJC_MSGSEND = YES; 448 | ENABLE_TESTABILITY = YES; 449 | GCC_C_LANGUAGE_STANDARD = gnu11; 450 | GCC_DYNAMIC_NO_PIC = NO; 451 | GCC_NO_COMMON_BLOCKS = YES; 452 | GCC_OPTIMIZATION_LEVEL = 0; 453 | GCC_PREPROCESSOR_DEFINITIONS = ( 454 | "POD_CONFIGURATION_DEBUG=1", 455 | "DEBUG=1", 456 | "$(inherited)", 457 | ); 458 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 459 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 460 | GCC_WARN_UNDECLARED_SELECTOR = YES; 461 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 462 | GCC_WARN_UNUSED_FUNCTION = YES; 463 | GCC_WARN_UNUSED_VARIABLE = YES; 464 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 465 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 466 | MTL_FAST_MATH = YES; 467 | ONLY_ACTIVE_ARCH = YES; 468 | PRODUCT_NAME = "$(TARGET_NAME)"; 469 | STRIP_INSTALLED_PRODUCT = NO; 470 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 471 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 472 | SWIFT_VERSION = 4.2; 473 | SYMROOT = "${SRCROOT}/../build"; 474 | }; 475 | name = Debug; 476 | }; 477 | A62CE0CE9BF51AC72EC34147A7328811 /* Release */ = { 478 | isa = XCBuildConfiguration; 479 | baseConfigurationReference = A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */; 480 | buildSettings = { 481 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 482 | CODE_SIGN_IDENTITY = ""; 483 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 484 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 485 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 486 | CURRENT_PROJECT_VERSION = 1; 487 | DEFINES_MODULE = YES; 488 | DYLIB_COMPATIBILITY_VERSION = 1; 489 | DYLIB_CURRENT_VERSION = 1; 490 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 491 | INFOPLIST_FILE = "Target Support Files/Pods-Example/Info.plist"; 492 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 493 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 494 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 495 | MACH_O_TYPE = staticlib; 496 | MODULEMAP_FILE = "Target Support Files/Pods-Example/Pods-Example.modulemap"; 497 | OTHER_LDFLAGS = ""; 498 | OTHER_LIBTOOLFLAGS = ""; 499 | PODS_ROOT = "$(SRCROOT)"; 500 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 501 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 502 | SDKROOT = iphoneos; 503 | SKIP_INSTALL = YES; 504 | TARGETED_DEVICE_FAMILY = "1,2"; 505 | VALIDATE_PRODUCT = YES; 506 | VERSIONING_SYSTEM = "apple-generic"; 507 | VERSION_INFO_PREFIX = ""; 508 | }; 509 | name = Release; 510 | }; 511 | E6B3F43C3FD0D84096DA448854E04D8E /* Release */ = { 512 | isa = XCBuildConfiguration; 513 | baseConfigurationReference = 0D94312AE45801302B9D7F397DF8BCCF /* JTTableViewController.xcconfig */; 514 | buildSettings = { 515 | CODE_SIGN_IDENTITY = ""; 516 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 517 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 518 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 519 | CURRENT_PROJECT_VERSION = 1; 520 | DEFINES_MODULE = YES; 521 | DYLIB_COMPATIBILITY_VERSION = 1; 522 | DYLIB_CURRENT_VERSION = 1; 523 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 524 | GCC_PREFIX_HEADER = "Target Support Files/JTTableViewController/JTTableViewController-prefix.pch"; 525 | INFOPLIST_FILE = "Target Support Files/JTTableViewController/Info.plist"; 526 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 527 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 528 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 529 | MODULEMAP_FILE = "Target Support Files/JTTableViewController/JTTableViewController.modulemap"; 530 | PRODUCT_MODULE_NAME = JTTableViewController; 531 | PRODUCT_NAME = JTTableViewController; 532 | SDKROOT = iphoneos; 533 | SKIP_INSTALL = YES; 534 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 535 | SWIFT_VERSION = 4.2; 536 | TARGETED_DEVICE_FAMILY = "1,2"; 537 | VALIDATE_PRODUCT = YES; 538 | VERSIONING_SYSTEM = "apple-generic"; 539 | VERSION_INFO_PREFIX = ""; 540 | }; 541 | name = Release; 542 | }; 543 | EFD2D4FF1CE4099D926DDB9354D8FE48 /* Debug */ = { 544 | isa = XCBuildConfiguration; 545 | baseConfigurationReference = EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */; 546 | buildSettings = { 547 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 548 | CODE_SIGN_IDENTITY = ""; 549 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 550 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 551 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 552 | CURRENT_PROJECT_VERSION = 1; 553 | DEFINES_MODULE = YES; 554 | DYLIB_COMPATIBILITY_VERSION = 1; 555 | DYLIB_CURRENT_VERSION = 1; 556 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 557 | INFOPLIST_FILE = "Target Support Files/Pods-Example/Info.plist"; 558 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 559 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 560 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 561 | MACH_O_TYPE = staticlib; 562 | MODULEMAP_FILE = "Target Support Files/Pods-Example/Pods-Example.modulemap"; 563 | OTHER_LDFLAGS = ""; 564 | OTHER_LIBTOOLFLAGS = ""; 565 | PODS_ROOT = "$(SRCROOT)"; 566 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 567 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 568 | SDKROOT = iphoneos; 569 | SKIP_INSTALL = YES; 570 | TARGETED_DEVICE_FAMILY = "1,2"; 571 | VERSIONING_SYSTEM = "apple-generic"; 572 | VERSION_INFO_PREFIX = ""; 573 | }; 574 | name = Debug; 575 | }; 576 | /* End XCBuildConfiguration section */ 577 | 578 | /* Begin XCConfigurationList section */ 579 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 580 | isa = XCConfigurationList; 581 | buildConfigurations = ( 582 | 858D01EEFE984249A9581D18DBEA53F1 /* Debug */, 583 | 5DE19CECB206ACCCACF04D62F93FFDA6 /* Release */, 584 | ); 585 | defaultConfigurationIsVisible = 0; 586 | defaultConfigurationName = Release; 587 | }; 588 | EB7A38CFE55A3B398515A014AF4F0038 /* Build configuration list for PBXNativeTarget "JTTableViewController" */ = { 589 | isa = XCConfigurationList; 590 | buildConfigurations = ( 591 | 23D9FE9B289D69ABEAD5D76C127F0A0B /* Debug */, 592 | E6B3F43C3FD0D84096DA448854E04D8E /* Release */, 593 | ); 594 | defaultConfigurationIsVisible = 0; 595 | defaultConfigurationName = Release; 596 | }; 597 | ECB5ECA0F4B6867BE22CF7BDF5FCCE97 /* Build configuration list for PBXNativeTarget "Pods-Example" */ = { 598 | isa = XCConfigurationList; 599 | buildConfigurations = ( 600 | EFD2D4FF1CE4099D926DDB9354D8FE48 /* Debug */, 601 | A62CE0CE9BF51AC72EC34147A7328811 /* Release */, 602 | ); 603 | defaultConfigurationIsVisible = 0; 604 | defaultConfigurationName = Release; 605 | }; 606 | /* End XCConfigurationList section */ 607 | }; 608 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 609 | } 610 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTTableViewController/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 | FMWK 17 | CFBundleShortVersionString 18 | 2.1.4 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTTableViewController/JTTableViewController-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_JTTableViewController : NSObject 3 | @end 4 | @implementation PodsDummy_JTTableViewController 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTTableViewController/JTTableViewController-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTTableViewController/JTTableViewController-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double JTTableViewControllerVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char JTTableViewControllerVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTTableViewController/JTTableViewController.modulemap: -------------------------------------------------------------------------------- 1 | framework module JTTableViewController { 2 | umbrella header "JTTableViewController-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTTableViewController/JTTableViewController.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/JTTableViewController 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## JTTableViewController 5 | 6 | Copyright (c) 2015 Jonathan Tribouharet 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | Generated by CocoaPods - https://cocoapods.org 26 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2015 Jonathan Tribouharet 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | License 37 | MIT 38 | Title 39 | JTTableViewController 40 | Type 41 | PSGroupSpecifier 42 | 43 | 44 | FooterText 45 | Generated by CocoaPods - https://cocoapods.org 46 | Title 47 | 48 | Type 49 | PSGroupSpecifier 50 | 51 | 52 | StringsTable 53 | Acknowledgements 54 | Title 55 | Acknowledgements 56 | 57 | 58 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/JTTableViewController/JTTableViewController.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/JTTableViewController/JTTableViewController.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/JTTableViewController" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/JTTableViewController/JTTableViewController.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "JTTableViewController" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Example { 2 | umbrella header "Pods-Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/JTTableViewController" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/JTTableViewController/JTTableViewController.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "JTTableViewController" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /JTTableViewController.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "JTTableViewController" 3 | s.version = "2.1.4" 4 | s.summary = "A ViewController with a tableView which manage pagination and loaders for iOS." 5 | s.homepage = "https://github.com/jonathantribouharet/JTTableViewController" 6 | s.license = { :type => 'MIT' } 7 | s.author = { "Jonathan VUKOVICH TRIBOUHARET" => "jonathan.tribouharet@gmail.com" } 8 | s.platform = :ios, '8.0' 9 | s.source = { :git => "https://github.com/jonathantribouharet/JTTableViewController.git", :tag => s.version.to_s } 10 | s.source_files = 'Source/*.swift' 11 | s.screenshots = ["https://raw.githubusercontent.com/jonathantribouharet/JTTableViewController/master/Screens/example.gif"] 12 | s.swift_version = '4.2' 13 | end 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Jonathan VUKOVICH TRIBOUHARET 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package( 4 | name: "JTTableViewController", 5 | swiftLanguageVersions: [4] 6 | ) -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JTTableViewController 2 | 3 | [![CI Status](http://img.shields.io/travis/jonathantribouharet/JTTableViewController.svg)](https://travis-ci.org/jonathantribouharet/JTTableViewController) 4 | ![Version](https://img.shields.io/cocoapods/v/JTTableViewController.svg) 5 | ![License](https://img.shields.io/cocoapods/l/JTTableViewController.svg) 6 | ![Platform](https://img.shields.io/cocoapods/p/JTTableViewController.svg) 7 | 8 | A ViewController with a tableView which manage pagination and loaders for iOS. 9 | 10 | ## Installation 11 | 12 | With [CocoaPods](http://cocoapods.org/), add this line to your Podfile. 13 | 14 | pod 'JTTableViewController', '~> 2.0' 15 | 16 | ## What's in it? 17 | 18 | - avoid parallel requests problem (you start two requests and the first one finish after the second), last request is the only one we want to use 19 | - easily manage pagination 20 | - display a view for the first loading (when your `tableView` is empty) 21 | - display a view when there is no results to your first request 22 | - display a loader view (an `UITableViewCell`) for indicate the next page is loading 23 | - display a view for errors 24 | 25 | ## Screenshots 26 | 27 | ![Example](./Screens/example.gif "Example View") 28 | 29 | ## Usage 30 | 31 | ### Minimum usage 32 | 33 | You can either use `JTFullTableViewController` which is almost like `UITableViewController`. 34 | Or you can inherit from `JTTableViewController`,`UITableViewDelegate`, `UITableViewDataSource`, create an `UITableView`, assign it to `self.tableView`, add it to the `self.view` and set the `delegate` and `dataSource` yourself. 35 | If your controller is fullscreen use `JTFullTableViewController` else use `JTTableViewController`. 36 | 37 | ```swift 38 | import JTTableViewController 39 | 40 | class ViewController: JTTableViewController, UITableViewDelegate, UITableViewDataSource { 41 | 42 | // Used in this example to manage your pagingation 43 | private var currentPage = 1 44 | 45 | // Must be implemented 46 | override func jt_tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 47 | let cell = tableView.dequeueReusableCell(withIdentifier: "cell") 48 | let anInstanceOfYourModel = self.results[indexPath.row] 49 | /* 50 | whatever you wanna do with `anInstanceOfYourModel` and your `cell` 51 | */ 52 | return cell 53 | } 54 | 55 | // Must be implemented 56 | override func fetchResults() { 57 | super.fetchResults() 58 | 59 | currentPage = 1 60 | 61 | // `lastRequestId` is used to avoid problem with parallel requests 62 | let lastRequestId = self.lastRequestId 63 | 64 | YourService.retrieveData(page: currentPage) { (error, results) -> () in 65 | if let error = error { 66 | self.didFailedToFetchResults(error: error, lastRequestId: lastRequestId) 67 | return 68 | } 69 | self.didFetchResults(results: results, lastRequestId: lastRequestId) { 70 | // this block is executed if `lastRequestId` matched with `self.lastRequestId` 71 | self.currentPage += 1 72 | } 73 | } 74 | } 75 | 76 | // Must be implemented 77 | override func fetchNextResults() { 78 | super.fetchNextResults() 79 | 80 | // `lastRequestId` is used to avoid problem with parallel requests 81 | let lastRequestId = self.lastRequestId 82 | 83 | YourService.retrieveData(page: currentPage) { (error, results) -> () in 84 | if let error = error { 85 | self.didFailedToFetchResults(error: error, lastRequestId: lastRequestId) 86 | } 87 | else { 88 | self.didFetchNextResults(results: results, lastRequestId: lastRequestId) { 89 | // this block is executed if `lastRequestId` matched with `self.lastRequestId` 90 | self.currentPage += 1 91 | } 92 | } 93 | } 94 | } 95 | 96 | } 97 | ``` 98 | 99 | ### Advanced usage 100 | 101 | ```swift 102 | import JTTableViewController 103 | 104 | class ViewController: JTTableViewController, UITableViewDelegate, UITableViewDataSource { 105 | 106 | // Used in this example to manage your pagingation 107 | private var currentPage = 1 108 | 109 | private let refreshControl = UIRefreshControl() 110 | 111 | override func viewDidLoad () { 112 | super.viewDidLoad() 113 | 114 | // `nextPageLoaderCell` is an `UITableViewCell` 115 | self.nextPageLoaderCell = MyNextPageLoadCell() 116 | 117 | // `fecthResults` is call 5 cells before `nextPageLoaderCell` become visible 118 | self.nextPageLoaderOffset = 5 119 | 120 | // `noResultsView` is display when `didFetchResults` is called with an `results` empty 121 | let noResultsView = NoResultsView() 122 | self.noResultsView = noResultsView 123 | self.view.addSubview(noResultsView) 124 | // something better than frame with Constraints but not relevant here 125 | noResultsView.frame = self.view.bounds 126 | 127 | // `noResultsLoadingView` is display when `fetchResults` is called and `results` is empty 128 | let noResultsLoadingView = NoResultsLoadingView() 129 | self.noResultsLoadingView = noResultsLoadingView 130 | self.view.addSubview(noResultsLoadingView) 131 | // something better than frame with Constraints but not relevant here 132 | noResultsLoadingView.frame = self.view.bounds 133 | 134 | // `errorView` is display when `didFailedToFetchResults` is called 135 | let errorView = ErrorView() 136 | self.errorView = errorView 137 | self.view.addSubview(errorView) 138 | // something better than frame with Constraints but not relevant here 139 | errorView.frame = self.view.bounds 140 | 141 | refreshControl.addTarget(self, action: #selector(fetchResults), for: .valueChanged) 142 | self.tableView?.addSubview(refreshControl) 143 | } 144 | 145 | override func viewWillAppear(_ animated: Bool) { 146 | super.viewWillAppear(animated) 147 | fetchResults() 148 | } 149 | 150 | // Must be implemented 151 | override func jt_tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 152 | let cell = tableView.dequeueReusableCell(withIdentifier: "cell") 153 | let anInstanceOfYourModel = self.results[indexPath.row] 154 | /* 155 | whatever you wanna do with `anInstanceOfYourModel` and your `cell` 156 | */ 157 | return cell 158 | } 159 | 160 | // Must be implemented 161 | override func fetchResults() { 162 | self.resetResults() 163 | 164 | super.fetchResults() 165 | 166 | currentPage = 1 167 | 168 | // `lastRequestId` is used to avoid problem with parallel requests 169 | let lastRequestId = self.lastRequestId 170 | 171 | YourService.retrieveData(page: currentPage) { (error, results) -> () in 172 | if let error = error { 173 | self.didFailedToFetchResults(error: error, lastRequestId: lastRequestId) 174 | return 175 | } 176 | self.didFetchResults(results: results, lastRequestId: lastRequestId) { 177 | // this block is executed if `lastRequestId` matched with `self.lastRequestId` 178 | self.currentPage += 1 179 | } 180 | } 181 | } 182 | 183 | // Must be implemented 184 | override func fetchNextResults() { 185 | super.fetchNextResults() 186 | 187 | // `lastRequestId` is used to avoid problem with parallel requests 188 | let lastRequestId = self.lastRequestId 189 | 190 | YourService.retrieveData(page: currentPage) { (error, results) -> () in 191 | if let error = error { 192 | self.didFailedToFetchResults(error: error, lastRequestId: lastRequestId) 193 | } 194 | else { 195 | self.didFetchNextResults(results: results, lastRequestId: lastRequestId) { 196 | // this block is executed if `lastRequestId` matched with `self.lastRequestId` 197 | self.currentPage += 1 198 | } 199 | } 200 | } 201 | } 202 | 203 | override func didEndFetching () { 204 | super.didEndFetching() 205 | refreshControl.endRefreshing() 206 | } 207 | 208 | } 209 | ``` 210 | 211 | You have to implement `fetchResults` and `fetchNextResults` methods. They are used to load data (from your web service for example). These methods must call `super`. 212 | 213 | Optionaly, you can override `jt_tableView(tableView:heightForRowAt:)` for defining the height of cells. 214 | 215 | `fetchResults` is used to retrieve new data (erase all previous data) whereas `fetchNextResults` is used for get more data (the pagination). 216 | 217 | `didFetchResults` must be call when `fetchResults` have successfuly retrieve data. 218 | `didFetchNextResults` must be call when `fetchNextResults` have successfuly retrieve data. 219 | `didFailedToFetchResults` must be call if `didFetchResults` or `didFetchNextResults` have failed to retrieve data. 220 | 221 | `didEndFetching` is called after `didFetchResults`, `didFetchNextResults` or `didFailedToFetchResults` 222 | 223 | The data are stored in `results`. Just use `self.results` to access to them. 224 | If you want to remove some elements in `results` you can use `self.unsafeResults`, only in specific case (ex: removing one cell). 225 | 226 | There are some properties you can customize: 227 | - `nextPageLoaderCell` is the loader use for the pagination, it's a `UITableViewCell` 228 | - `noResultsView` is the view display when the results get from your service are empty 229 | - `noResultsLoadingView` is the view display when there is no results and you start fetching new data, used for the first load 230 | - `errorView` is the view display `didFailedToFetchResults` is called 231 | - `nextPageLoaderOffset` is the number of cells require before the last cell for calling `fetchNextResults`, by default it's 3 232 | 233 | You can also override some methods: 234 | - `didEndFetching` 235 | - `showNoResultsLoadingView` 236 | - `hideNoResultsLoadingView` 237 | - `showNoResultsView` 238 | - `hideNoResultsView` 239 | - `showErrorView` 240 | - `hideErrorView` 241 | 242 | ### Sections 243 | 244 | `JTTableViewController` support section management. You just have to override 2 method: 245 | - `numberOfSections(tableView:)` 246 | - `jt_tableView(tableView:numberOfRowsInSection:)` 247 | 248 | ```swift 249 | import JTTableViewController 250 | 251 | class ViewController: JTTableViewController<[Int: [YourModel]]>, UITableViewDelegate, UITableViewDataSource { 252 | 253 | @objc(numberOfSectionsInTableView:) 254 | override func numberOfSections(in tableView: UITableView) -> Int { 255 | return self.results.count 256 | } 257 | 258 | override func jt_tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 259 | return results[section].count 260 | } 261 | 262 | } 263 | ``` 264 | 265 | ## Subclassing notes 266 | 267 | If you want to subclass `JTTableViewController` or `JTFullTableViewController`, the methods from `UITableViewDelegate` and `UITableViewDataSource` must have an `@objc` annotation. 268 | 269 | ```swift 270 | class XXTableViewController: JTTableViewController { 271 | /* 272 | ... Here you add whatever you want to add 273 | */ 274 | } 275 | 276 | class MyViewController: XXTableViewController { 277 | 278 | // if you don't add `@objc(tableView:didSelectRowAtIndexPath:)` this method is not called 279 | @objc(tableView:didSelectRowAtIndexPath:) 280 | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 281 | /* 282 | ... 283 | /* 284 | } 285 | 286 | } 287 | ``` 288 | 289 | ## Requirements 290 | 291 | - iOS 8.0 or higher 292 | - Swift 3.0 293 | 294 | ## Author 295 | 296 | - [Jonathan VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johnvuko](https://twitter.com/johnvuko)) 297 | 298 | ## License 299 | 300 | JTTableViewController is released under the MIT license. See the LICENSE file for more info. 301 | -------------------------------------------------------------------------------- /Screens/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnvuko/JTTableViewController/00ae8b5c9810a49c274eb4ecdf36982c8e0fed83/Screens/example.gif -------------------------------------------------------------------------------- /Source/JTFullTableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JTFullTableViewController.swift 3 | // JTFullTableViewController 4 | // 5 | // Created by Jonathan Tribouharet 6 | // 7 | 8 | import UIKit 9 | 10 | open class JTFullTableViewController: JTTableViewController, UITableViewDelegate, UITableViewDataSource { 11 | 12 | public let refreshControl = UIRefreshControl() 13 | 14 | open override func loadView () { 15 | super.loadView() 16 | 17 | let tableView = UITableView() 18 | self.view.addSubview(tableView) 19 | self.tableView = tableView 20 | 21 | tableView.frame = self.view.bounds 22 | tableView.autoresizingMask = [.flexibleHeight, .flexibleWidth] 23 | 24 | tableView.dataSource = self 25 | tableView.delegate = self 26 | 27 | refreshControl.addTarget(self, action: #selector(fetchResults), for: .valueChanged) 28 | tableView.addSubview(refreshControl) 29 | } 30 | 31 | open override func didEndFetching () { 32 | super.didEndFetching() 33 | refreshControl.endRefreshing() 34 | } 35 | 36 | } -------------------------------------------------------------------------------- /Source/JTTableViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JTTableViewController.swift 3 | // JTTableViewController 4 | // 5 | // Created by Jonathan Tribouharet 6 | // 7 | 8 | import UIKit 9 | 10 | open class JTTableViewController: UIViewController { 11 | 12 | @IBOutlet open var tableView: UITableView? 13 | @IBOutlet open var nextPageLoaderCell: UITableViewCell? 14 | 15 | @IBOutlet open var noResultsView: UIView? { 16 | didSet { 17 | noResultsView?.isHidden = true 18 | noResultsView?.isUserInteractionEnabled = false 19 | } 20 | } 21 | 22 | @IBOutlet open var noResultsLoadingView: UIView? { 23 | didSet { 24 | noResultsLoadingView?.isHidden = true 25 | noResultsLoadingView?.isUserInteractionEnabled = false 26 | } 27 | } 28 | 29 | @IBOutlet open var errorView: UIView? { 30 | didSet { 31 | errorView?.isHidden = true 32 | errorView?.isUserInteractionEnabled = false 33 | } 34 | } 35 | 36 | open var nextPageLoaderOffset = 3 37 | 38 | open private(set) var results = [T]() 39 | open private(set) var haveMoreResults = false 40 | open private(set) var isFetching = false 41 | 42 | // Use to directly have access to results 43 | open var unsafeResults: [T] { 44 | get { 45 | return results 46 | } 47 | set (value) { 48 | results = value 49 | } 50 | } 51 | 52 | // Used to ignore invalid / older requests 53 | open private(set) var lastRequestId = 0 54 | 55 | open func resetResults (scrollTop: Bool = false, scrollAnimated: Bool = true) { 56 | results.removeAll() 57 | haveMoreResults = false 58 | isFetching = false 59 | lastRequestId += 1 60 | 61 | hideNoResultsView() 62 | hideNoResultsLoadingView() 63 | hideErrorView() 64 | 65 | tableView?.reloadData() 66 | 67 | if scrollTop { 68 | tableView?.setContentOffset(CGPoint(), animated: scrollAnimated) 69 | } 70 | } 71 | 72 | @objc open func fetchResults () { 73 | isFetching = true 74 | lastRequestId += 1 75 | 76 | hideNoResultsView() 77 | hideErrorView() 78 | 79 | if results.isEmpty { 80 | showNoResultsLoadingView() 81 | } 82 | } 83 | 84 | open func fetchNextResults () { 85 | isFetching = true 86 | lastRequestId += 1 87 | 88 | hideErrorView() 89 | } 90 | 91 | open func didFetchResults (results: [T], haveMoreResults: Bool? = nil, lastRequestId: Int? = nil, completion: (()->())? = nil) { 92 | if let lastRequestId = lastRequestId { 93 | if self.lastRequestId != lastRequestId { 94 | return 95 | } 96 | } 97 | 98 | self.results.removeAll() 99 | self.results.append(contentsOf: results) 100 | 101 | if let haveMoreResults = haveMoreResults { 102 | self.haveMoreResults = haveMoreResults 103 | } 104 | else { 105 | self.haveMoreResults = results.count > 0 106 | } 107 | 108 | isFetching = false 109 | 110 | tableView?.reloadData() 111 | 112 | hideNoResultsLoadingView() 113 | 114 | if results.isEmpty { 115 | showNoResultsView() 116 | } 117 | 118 | didEndFetching() 119 | 120 | if let completion = completion { 121 | completion() 122 | } 123 | } 124 | 125 | open func didFetchNextResults (results: [T], haveMoreResults: Bool? = nil, lastRequestId: Int? = nil, completion: (()->())? = nil) { 126 | if let lastRequestId = lastRequestId { 127 | if self.lastRequestId != lastRequestId { 128 | return 129 | } 130 | } 131 | 132 | isFetching = false 133 | 134 | self.results.append(contentsOf: results) 135 | 136 | if let haveMoreResults = haveMoreResults { 137 | self.haveMoreResults = haveMoreResults 138 | } 139 | else { 140 | self.haveMoreResults = results.count > 0 141 | } 142 | 143 | tableView?.reloadData() 144 | 145 | didEndFetching() 146 | 147 | if let completion = completion { 148 | completion() 149 | } 150 | } 151 | 152 | open func didFailedToFetchResults (error: Error? = nil, lastRequestId: Int? = nil, completion: (()->())? = nil) { 153 | if let lastRequestId = lastRequestId { 154 | if self.lastRequestId != lastRequestId { 155 | return 156 | } 157 | } 158 | 159 | isFetching = false 160 | 161 | hideNoResultsLoadingView() 162 | showErrorView(error: error) 163 | 164 | didEndFetching() 165 | 166 | if let completion = completion { 167 | completion() 168 | } 169 | } 170 | 171 | open func showNoResultsLoadingView () { 172 | noResultsLoadingView?.isHidden = false 173 | } 174 | 175 | open func hideNoResultsLoadingView () { 176 | noResultsLoadingView?.isHidden = true 177 | } 178 | 179 | open func showNoResultsView () { 180 | noResultsView?.isHidden = false 181 | } 182 | 183 | open func hideNoResultsView () { 184 | noResultsView?.isHidden = true 185 | } 186 | 187 | open func showErrorView (error: Error? = nil) { 188 | errorView?.isHidden = false 189 | } 190 | 191 | open func hideErrorView () { 192 | errorView?.isHidden = true 193 | } 194 | 195 | open func didEndFetching () { 196 | 197 | } 198 | 199 | //MARK: TableView delegate 200 | 201 | open func canShowNextPageLoaderCell (tableView: UITableView? = nil, section: Int? = nil, row: Int? = nil) -> Bool { 202 | if nextPageLoaderCell != nil, haveMoreResults { 203 | if let tableView = tableView, let section = section { 204 | // if not last section 205 | if self.numberOfSections(in: tableView) != section + 1 { 206 | return false 207 | } 208 | 209 | if let row = row { 210 | // if not last row => nextPageLoaderCell 211 | if self.tableView(tableView, numberOfRowsInSection: section) != row + 1 { 212 | return false 213 | } 214 | } 215 | } 216 | 217 | return true 218 | } 219 | 220 | return false 221 | } 222 | 223 | open func shouldFetchNextResults(tableView: UITableView, indexPath: IndexPath) -> Bool { 224 | if self.isFetching || !self.haveMoreResults || self.nextPageLoaderCell == nil { 225 | return false 226 | } 227 | 228 | // if not last section 229 | if self.numberOfSections(in: tableView) != indexPath.section + 1 { 230 | return false 231 | } 232 | 233 | if indexPath.row >= self.tableView(tableView, numberOfRowsInSection: indexPath.section) - (self.nextPageLoaderOffset + 1) { 234 | return true 235 | } 236 | 237 | return false 238 | } 239 | 240 | @objc(numberOfSectionsInTableView:) 241 | open func numberOfSections(in tableView: UITableView) -> Int { 242 | return 1 243 | } 244 | 245 | @objc(tableView:numberOfRowsInSection:) 246 | open func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 247 | if canShowNextPageLoaderCell(tableView: tableView, section: section) { 248 | return jt_tableView(tableView, numberOfRowsInSection: section) + 1 249 | } 250 | 251 | return jt_tableView(tableView, numberOfRowsInSection: section) 252 | } 253 | 254 | open func jt_tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 255 | return results.count 256 | } 257 | 258 | @objc(tableView:heightForRowAtIndexPath:) 259 | open func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 260 | if canShowNextPageLoaderCell(tableView: tableView, section: indexPath.section, row: indexPath.row), let nextPageLoaderCell = nextPageLoaderCell { 261 | return nextPageLoaderCell.frame.height 262 | } 263 | 264 | return jt_tableView(tableView, heightForRowAt: indexPath) 265 | } 266 | 267 | open func jt_tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { 268 | return UITableView.automaticDimension 269 | } 270 | 271 | @objc(tableView:cellForRowAtIndexPath:) 272 | open func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 273 | if canShowNextPageLoaderCell(tableView: tableView, section: indexPath.section, row: indexPath.row), let nextPageLoaderCell = nextPageLoaderCell { 274 | if !self.isFetching { 275 | fetchNextResults() 276 | } 277 | return nextPageLoaderCell 278 | } 279 | 280 | if shouldFetchNextResults(tableView: tableView, indexPath: indexPath) { 281 | fetchNextResults() 282 | } 283 | 284 | return jt_tableView(tableView, cellForRowAt: indexPath) 285 | } 286 | 287 | open func jt_tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 288 | return UITableViewCell() 289 | } 290 | 291 | } 292 | --------------------------------------------------------------------------------