├── .gitignore ├── GBNoDataDemo.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── GBNoDataDemo.xcworkspace └── contents.xcworkspacedata ├── GBNoDataDemo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── GBNoDataDemoTests ├── GBNoDataDemoTests.m └── Info.plist ├── GBNoDataDemoUITests ├── GBNoDataDemoUITests.m └── Info.plist ├── Podfile ├── Podfile.lock ├── Pods ├── GBNoData │ ├── GBNoData │ │ └── Classes │ │ │ ├── GBRuntimeUtil.h │ │ │ ├── GBRuntimeUtil.m │ │ │ ├── UICollectionView+NoData.h │ │ │ ├── UICollectionView+NoData.m │ │ │ ├── UITableView+NoData.h │ │ │ └── UITableView+NoData.m │ ├── LICENSE │ └── README.md ├── Headers │ ├── Private │ │ └── GBNoData │ │ │ ├── GBRuntimeUtil.h │ │ │ ├── UICollectionView+NoData.h │ │ │ └── UITableView+NoData.h │ └── Public │ │ └── GBNoData │ │ ├── GBRuntimeUtil.h │ │ ├── UICollectionView+NoData.h │ │ └── UITableView+NoData.h ├── Manifest.lock ├── Pods.xcodeproj │ └── project.pbxproj └── Target Support Files │ ├── GBNoData │ ├── GBNoData-dummy.m │ ├── GBNoData-prefix.pch │ └── GBNoData.xcconfig │ └── Pods-GBNoDataDemo │ ├── Pods-GBNoDataDemo-acknowledgements.markdown │ ├── Pods-GBNoDataDemo-acknowledgements.plist │ ├── Pods-GBNoDataDemo-dummy.m │ ├── Pods-GBNoDataDemo-frameworks.sh │ ├── Pods-GBNoDataDemo-resources.sh │ ├── Pods-GBNoDataDemo.debug.xcconfig │ └── Pods-GBNoDataDemo.release.xcconfig └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /GBNoDataDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | A06FCA632004FD3200FE8D2C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA622004FD3200FE8D2C /* AppDelegate.m */; }; 11 | A06FCA662004FD3200FE8D2C /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA652004FD3200FE8D2C /* ViewController.m */; }; 12 | A06FCA692004FD3200FE8D2C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A06FCA672004FD3200FE8D2C /* Main.storyboard */; }; 13 | A06FCA6B2004FD3200FE8D2C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A06FCA6A2004FD3200FE8D2C /* Assets.xcassets */; }; 14 | A06FCA6E2004FD3200FE8D2C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A06FCA6C2004FD3200FE8D2C /* LaunchScreen.storyboard */; }; 15 | A06FCA712004FD3200FE8D2C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA702004FD3200FE8D2C /* main.m */; }; 16 | A06FCA7B2004FD3200FE8D2C /* GBNoDataDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA7A2004FD3200FE8D2C /* GBNoDataDemoTests.m */; }; 17 | A06FCA862004FD3200FE8D2C /* GBNoDataDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA852004FD3200FE8D2C /* GBNoDataDemoUITests.m */; }; 18 | BDC2DA65B43210725BEC532E /* libPods-GBNoDataDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70B8B429306D08CF7312AE09 /* libPods-GBNoDataDemo.a */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | A06FCA772004FD3200FE8D2C /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = A06FCA562004FD3200FE8D2C /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = A06FCA5D2004FD3200FE8D2C; 27 | remoteInfo = GBNoDataDemo; 28 | }; 29 | A06FCA822004FD3200FE8D2C /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = A06FCA562004FD3200FE8D2C /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = A06FCA5D2004FD3200FE8D2C; 34 | remoteInfo = GBNoDataDemo; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 4ACF912A1DF655079D419F98 /* Pods-GBNoDataDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GBNoDataDemo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo.debug.xcconfig"; sourceTree = ""; }; 40 | 4CED3D497882098841D468F3 /* Pods-GBNoDataDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GBNoDataDemo.release.xcconfig"; path = "Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo.release.xcconfig"; sourceTree = ""; }; 41 | 70B8B429306D08CF7312AE09 /* libPods-GBNoDataDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-GBNoDataDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | A06FCA5E2004FD3200FE8D2C /* GBNoDataDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GBNoDataDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | A06FCA612004FD3200FE8D2C /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 44 | A06FCA622004FD3200FE8D2C /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 45 | A06FCA642004FD3200FE8D2C /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 46 | A06FCA652004FD3200FE8D2C /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 47 | A06FCA682004FD3200FE8D2C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 48 | A06FCA6A2004FD3200FE8D2C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 49 | A06FCA6D2004FD3200FE8D2C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 50 | A06FCA6F2004FD3200FE8D2C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | A06FCA702004FD3200FE8D2C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 52 | A06FCA762004FD3200FE8D2C /* GBNoDataDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GBNoDataDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | A06FCA7A2004FD3200FE8D2C /* GBNoDataDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GBNoDataDemoTests.m; sourceTree = ""; }; 54 | A06FCA7C2004FD3200FE8D2C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | A06FCA812004FD3200FE8D2C /* GBNoDataDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GBNoDataDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | A06FCA852004FD3200FE8D2C /* GBNoDataDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GBNoDataDemoUITests.m; sourceTree = ""; }; 57 | A06FCA872004FD3200FE8D2C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | A06FCA5B2004FD3200FE8D2C /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | BDC2DA65B43210725BEC532E /* libPods-GBNoDataDemo.a in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | A06FCA732004FD3200FE8D2C /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | A06FCA7E2004FD3200FE8D2C /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | /* End PBXFrameworksBuildPhase section */ 84 | 85 | /* Begin PBXGroup section */ 86 | 28588F7B8A06CF993562BFD0 /* Frameworks */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 70B8B429306D08CF7312AE09 /* libPods-GBNoDataDemo.a */, 90 | ); 91 | name = Frameworks; 92 | sourceTree = ""; 93 | }; 94 | 5459A535FB25DCEF78B887F3 /* Pods */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 4ACF912A1DF655079D419F98 /* Pods-GBNoDataDemo.debug.xcconfig */, 98 | 4CED3D497882098841D468F3 /* Pods-GBNoDataDemo.release.xcconfig */, 99 | ); 100 | name = Pods; 101 | sourceTree = ""; 102 | }; 103 | A06FCA552004FD3200FE8D2C = { 104 | isa = PBXGroup; 105 | children = ( 106 | A06FCA602004FD3200FE8D2C /* GBNoDataDemo */, 107 | A06FCA792004FD3200FE8D2C /* GBNoDataDemoTests */, 108 | A06FCA842004FD3200FE8D2C /* GBNoDataDemoUITests */, 109 | A06FCA5F2004FD3200FE8D2C /* Products */, 110 | 5459A535FB25DCEF78B887F3 /* Pods */, 111 | 28588F7B8A06CF993562BFD0 /* Frameworks */, 112 | ); 113 | sourceTree = ""; 114 | }; 115 | A06FCA5F2004FD3200FE8D2C /* Products */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | A06FCA5E2004FD3200FE8D2C /* GBNoDataDemo.app */, 119 | A06FCA762004FD3200FE8D2C /* GBNoDataDemoTests.xctest */, 120 | A06FCA812004FD3200FE8D2C /* GBNoDataDemoUITests.xctest */, 121 | ); 122 | name = Products; 123 | sourceTree = ""; 124 | }; 125 | A06FCA602004FD3200FE8D2C /* GBNoDataDemo */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | A06FCA612004FD3200FE8D2C /* AppDelegate.h */, 129 | A06FCA622004FD3200FE8D2C /* AppDelegate.m */, 130 | A06FCA642004FD3200FE8D2C /* ViewController.h */, 131 | A06FCA652004FD3200FE8D2C /* ViewController.m */, 132 | A06FCA672004FD3200FE8D2C /* Main.storyboard */, 133 | A06FCA6A2004FD3200FE8D2C /* Assets.xcassets */, 134 | A06FCA6C2004FD3200FE8D2C /* LaunchScreen.storyboard */, 135 | A06FCA6F2004FD3200FE8D2C /* Info.plist */, 136 | A06FCA702004FD3200FE8D2C /* main.m */, 137 | ); 138 | path = GBNoDataDemo; 139 | sourceTree = ""; 140 | }; 141 | A06FCA792004FD3200FE8D2C /* GBNoDataDemoTests */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | A06FCA7A2004FD3200FE8D2C /* GBNoDataDemoTests.m */, 145 | A06FCA7C2004FD3200FE8D2C /* Info.plist */, 146 | ); 147 | path = GBNoDataDemoTests; 148 | sourceTree = ""; 149 | }; 150 | A06FCA842004FD3200FE8D2C /* GBNoDataDemoUITests */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | A06FCA852004FD3200FE8D2C /* GBNoDataDemoUITests.m */, 154 | A06FCA872004FD3200FE8D2C /* Info.plist */, 155 | ); 156 | path = GBNoDataDemoUITests; 157 | sourceTree = ""; 158 | }; 159 | /* End PBXGroup section */ 160 | 161 | /* Begin PBXNativeTarget section */ 162 | A06FCA5D2004FD3200FE8D2C /* GBNoDataDemo */ = { 163 | isa = PBXNativeTarget; 164 | buildConfigurationList = A06FCA8A2004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemo" */; 165 | buildPhases = ( 166 | 30B48E68C83C81B96BB58E78 /* [CP] Check Pods Manifest.lock */, 167 | A06FCA5A2004FD3200FE8D2C /* Sources */, 168 | A06FCA5B2004FD3200FE8D2C /* Frameworks */, 169 | A06FCA5C2004FD3200FE8D2C /* Resources */, 170 | 5EEAEC0050918B3D6C6AB570 /* [CP] Embed Pods Frameworks */, 171 | 69835BFE42459BB0B0CC62D2 /* [CP] Copy Pods Resources */, 172 | ); 173 | buildRules = ( 174 | ); 175 | dependencies = ( 176 | ); 177 | name = GBNoDataDemo; 178 | productName = GBNoDataDemo; 179 | productReference = A06FCA5E2004FD3200FE8D2C /* GBNoDataDemo.app */; 180 | productType = "com.apple.product-type.application"; 181 | }; 182 | A06FCA752004FD3200FE8D2C /* GBNoDataDemoTests */ = { 183 | isa = PBXNativeTarget; 184 | buildConfigurationList = A06FCA8D2004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemoTests" */; 185 | buildPhases = ( 186 | A06FCA722004FD3200FE8D2C /* Sources */, 187 | A06FCA732004FD3200FE8D2C /* Frameworks */, 188 | A06FCA742004FD3200FE8D2C /* Resources */, 189 | ); 190 | buildRules = ( 191 | ); 192 | dependencies = ( 193 | A06FCA782004FD3200FE8D2C /* PBXTargetDependency */, 194 | ); 195 | name = GBNoDataDemoTests; 196 | productName = GBNoDataDemoTests; 197 | productReference = A06FCA762004FD3200FE8D2C /* GBNoDataDemoTests.xctest */; 198 | productType = "com.apple.product-type.bundle.unit-test"; 199 | }; 200 | A06FCA802004FD3200FE8D2C /* GBNoDataDemoUITests */ = { 201 | isa = PBXNativeTarget; 202 | buildConfigurationList = A06FCA902004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemoUITests" */; 203 | buildPhases = ( 204 | A06FCA7D2004FD3200FE8D2C /* Sources */, 205 | A06FCA7E2004FD3200FE8D2C /* Frameworks */, 206 | A06FCA7F2004FD3200FE8D2C /* Resources */, 207 | ); 208 | buildRules = ( 209 | ); 210 | dependencies = ( 211 | A06FCA832004FD3200FE8D2C /* PBXTargetDependency */, 212 | ); 213 | name = GBNoDataDemoUITests; 214 | productName = GBNoDataDemoUITests; 215 | productReference = A06FCA812004FD3200FE8D2C /* GBNoDataDemoUITests.xctest */; 216 | productType = "com.apple.product-type.bundle.ui-testing"; 217 | }; 218 | /* End PBXNativeTarget section */ 219 | 220 | /* Begin PBXProject section */ 221 | A06FCA562004FD3200FE8D2C /* Project object */ = { 222 | isa = PBXProject; 223 | attributes = { 224 | LastUpgradeCheck = 0920; 225 | ORGANIZATIONNAME = Lucas; 226 | TargetAttributes = { 227 | A06FCA5D2004FD3200FE8D2C = { 228 | CreatedOnToolsVersion = 9.2; 229 | ProvisioningStyle = Automatic; 230 | }; 231 | A06FCA752004FD3200FE8D2C = { 232 | CreatedOnToolsVersion = 9.2; 233 | ProvisioningStyle = Automatic; 234 | TestTargetID = A06FCA5D2004FD3200FE8D2C; 235 | }; 236 | A06FCA802004FD3200FE8D2C = { 237 | CreatedOnToolsVersion = 9.2; 238 | ProvisioningStyle = Automatic; 239 | TestTargetID = A06FCA5D2004FD3200FE8D2C; 240 | }; 241 | }; 242 | }; 243 | buildConfigurationList = A06FCA592004FD3200FE8D2C /* Build configuration list for PBXProject "GBNoDataDemo" */; 244 | compatibilityVersion = "Xcode 8.0"; 245 | developmentRegion = en; 246 | hasScannedForEncodings = 0; 247 | knownRegions = ( 248 | en, 249 | Base, 250 | ); 251 | mainGroup = A06FCA552004FD3200FE8D2C; 252 | productRefGroup = A06FCA5F2004FD3200FE8D2C /* Products */; 253 | projectDirPath = ""; 254 | projectRoot = ""; 255 | targets = ( 256 | A06FCA5D2004FD3200FE8D2C /* GBNoDataDemo */, 257 | A06FCA752004FD3200FE8D2C /* GBNoDataDemoTests */, 258 | A06FCA802004FD3200FE8D2C /* GBNoDataDemoUITests */, 259 | ); 260 | }; 261 | /* End PBXProject section */ 262 | 263 | /* Begin PBXResourcesBuildPhase section */ 264 | A06FCA5C2004FD3200FE8D2C /* Resources */ = { 265 | isa = PBXResourcesBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | A06FCA6E2004FD3200FE8D2C /* LaunchScreen.storyboard in Resources */, 269 | A06FCA6B2004FD3200FE8D2C /* Assets.xcassets in Resources */, 270 | A06FCA692004FD3200FE8D2C /* Main.storyboard in Resources */, 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | }; 274 | A06FCA742004FD3200FE8D2C /* Resources */ = { 275 | isa = PBXResourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | A06FCA7F2004FD3200FE8D2C /* Resources */ = { 282 | isa = PBXResourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | }; 288 | /* End PBXResourcesBuildPhase section */ 289 | 290 | /* Begin PBXShellScriptBuildPhase section */ 291 | 30B48E68C83C81B96BB58E78 /* [CP] Check Pods Manifest.lock */ = { 292 | isa = PBXShellScriptBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | ); 296 | inputPaths = ( 297 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 298 | "${PODS_ROOT}/Manifest.lock", 299 | ); 300 | name = "[CP] Check Pods Manifest.lock"; 301 | outputPaths = ( 302 | "$(DERIVED_FILE_DIR)/Pods-GBNoDataDemo-checkManifestLockResult.txt", 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | shellPath = /bin/sh; 306 | 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"; 307 | showEnvVarsInLog = 0; 308 | }; 309 | 5EEAEC0050918B3D6C6AB570 /* [CP] Embed Pods Frameworks */ = { 310 | isa = PBXShellScriptBuildPhase; 311 | buildActionMask = 2147483647; 312 | files = ( 313 | ); 314 | inputPaths = ( 315 | ); 316 | name = "[CP] Embed Pods Frameworks"; 317 | outputPaths = ( 318 | ); 319 | runOnlyForDeploymentPostprocessing = 0; 320 | shellPath = /bin/sh; 321 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-frameworks.sh\"\n"; 322 | showEnvVarsInLog = 0; 323 | }; 324 | 69835BFE42459BB0B0CC62D2 /* [CP] Copy Pods Resources */ = { 325 | isa = PBXShellScriptBuildPhase; 326 | buildActionMask = 2147483647; 327 | files = ( 328 | ); 329 | inputPaths = ( 330 | ); 331 | name = "[CP] Copy Pods Resources"; 332 | outputPaths = ( 333 | ); 334 | runOnlyForDeploymentPostprocessing = 0; 335 | shellPath = /bin/sh; 336 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-resources.sh\"\n"; 337 | showEnvVarsInLog = 0; 338 | }; 339 | /* End PBXShellScriptBuildPhase section */ 340 | 341 | /* Begin PBXSourcesBuildPhase section */ 342 | A06FCA5A2004FD3200FE8D2C /* Sources */ = { 343 | isa = PBXSourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | A06FCA662004FD3200FE8D2C /* ViewController.m in Sources */, 347 | A06FCA712004FD3200FE8D2C /* main.m in Sources */, 348 | A06FCA632004FD3200FE8D2C /* AppDelegate.m in Sources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | A06FCA722004FD3200FE8D2C /* Sources */ = { 353 | isa = PBXSourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | A06FCA7B2004FD3200FE8D2C /* GBNoDataDemoTests.m in Sources */, 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | A06FCA7D2004FD3200FE8D2C /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | A06FCA862004FD3200FE8D2C /* GBNoDataDemoUITests.m in Sources */, 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | }; 368 | /* End PBXSourcesBuildPhase section */ 369 | 370 | /* Begin PBXTargetDependency section */ 371 | A06FCA782004FD3200FE8D2C /* PBXTargetDependency */ = { 372 | isa = PBXTargetDependency; 373 | target = A06FCA5D2004FD3200FE8D2C /* GBNoDataDemo */; 374 | targetProxy = A06FCA772004FD3200FE8D2C /* PBXContainerItemProxy */; 375 | }; 376 | A06FCA832004FD3200FE8D2C /* PBXTargetDependency */ = { 377 | isa = PBXTargetDependency; 378 | target = A06FCA5D2004FD3200FE8D2C /* GBNoDataDemo */; 379 | targetProxy = A06FCA822004FD3200FE8D2C /* PBXContainerItemProxy */; 380 | }; 381 | /* End PBXTargetDependency section */ 382 | 383 | /* Begin PBXVariantGroup section */ 384 | A06FCA672004FD3200FE8D2C /* Main.storyboard */ = { 385 | isa = PBXVariantGroup; 386 | children = ( 387 | A06FCA682004FD3200FE8D2C /* Base */, 388 | ); 389 | name = Main.storyboard; 390 | sourceTree = ""; 391 | }; 392 | A06FCA6C2004FD3200FE8D2C /* LaunchScreen.storyboard */ = { 393 | isa = PBXVariantGroup; 394 | children = ( 395 | A06FCA6D2004FD3200FE8D2C /* Base */, 396 | ); 397 | name = LaunchScreen.storyboard; 398 | sourceTree = ""; 399 | }; 400 | /* End PBXVariantGroup section */ 401 | 402 | /* Begin XCBuildConfiguration section */ 403 | A06FCA882004FD3200FE8D2C /* Debug */ = { 404 | isa = XCBuildConfiguration; 405 | buildSettings = { 406 | ALWAYS_SEARCH_USER_PATHS = NO; 407 | CLANG_ANALYZER_NONNULL = YES; 408 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 409 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 410 | CLANG_CXX_LIBRARY = "libc++"; 411 | CLANG_ENABLE_MODULES = YES; 412 | CLANG_ENABLE_OBJC_ARC = YES; 413 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 414 | CLANG_WARN_BOOL_CONVERSION = YES; 415 | CLANG_WARN_COMMA = YES; 416 | CLANG_WARN_CONSTANT_CONVERSION = YES; 417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 418 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 419 | CLANG_WARN_EMPTY_BODY = YES; 420 | CLANG_WARN_ENUM_CONVERSION = YES; 421 | CLANG_WARN_INFINITE_RECURSION = YES; 422 | CLANG_WARN_INT_CONVERSION = YES; 423 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 424 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 425 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 426 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 427 | CLANG_WARN_STRICT_PROTOTYPES = YES; 428 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 429 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 430 | CLANG_WARN_UNREACHABLE_CODE = YES; 431 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 432 | CODE_SIGN_IDENTITY = "iPhone Developer"; 433 | COPY_PHASE_STRIP = NO; 434 | DEBUG_INFORMATION_FORMAT = dwarf; 435 | ENABLE_STRICT_OBJC_MSGSEND = YES; 436 | ENABLE_TESTABILITY = YES; 437 | GCC_C_LANGUAGE_STANDARD = gnu11; 438 | GCC_DYNAMIC_NO_PIC = NO; 439 | GCC_NO_COMMON_BLOCKS = YES; 440 | GCC_OPTIMIZATION_LEVEL = 0; 441 | GCC_PREPROCESSOR_DEFINITIONS = ( 442 | "DEBUG=1", 443 | "$(inherited)", 444 | ); 445 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 446 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 447 | GCC_WARN_UNDECLARED_SELECTOR = YES; 448 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 449 | GCC_WARN_UNUSED_FUNCTION = YES; 450 | GCC_WARN_UNUSED_VARIABLE = YES; 451 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 452 | MTL_ENABLE_DEBUG_INFO = YES; 453 | ONLY_ACTIVE_ARCH = YES; 454 | SDKROOT = iphoneos; 455 | }; 456 | name = Debug; 457 | }; 458 | A06FCA892004FD3200FE8D2C /* Release */ = { 459 | isa = XCBuildConfiguration; 460 | buildSettings = { 461 | ALWAYS_SEARCH_USER_PATHS = NO; 462 | CLANG_ANALYZER_NONNULL = YES; 463 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 464 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 465 | CLANG_CXX_LIBRARY = "libc++"; 466 | CLANG_ENABLE_MODULES = YES; 467 | CLANG_ENABLE_OBJC_ARC = YES; 468 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 469 | CLANG_WARN_BOOL_CONVERSION = YES; 470 | CLANG_WARN_COMMA = YES; 471 | CLANG_WARN_CONSTANT_CONVERSION = YES; 472 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 473 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 474 | CLANG_WARN_EMPTY_BODY = YES; 475 | CLANG_WARN_ENUM_CONVERSION = YES; 476 | CLANG_WARN_INFINITE_RECURSION = YES; 477 | CLANG_WARN_INT_CONVERSION = YES; 478 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 479 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 480 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 481 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 482 | CLANG_WARN_STRICT_PROTOTYPES = YES; 483 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 484 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 485 | CLANG_WARN_UNREACHABLE_CODE = YES; 486 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 487 | CODE_SIGN_IDENTITY = "iPhone Developer"; 488 | COPY_PHASE_STRIP = NO; 489 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 490 | ENABLE_NS_ASSERTIONS = NO; 491 | ENABLE_STRICT_OBJC_MSGSEND = YES; 492 | GCC_C_LANGUAGE_STANDARD = gnu11; 493 | GCC_NO_COMMON_BLOCKS = YES; 494 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 495 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 496 | GCC_WARN_UNDECLARED_SELECTOR = YES; 497 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 498 | GCC_WARN_UNUSED_FUNCTION = YES; 499 | GCC_WARN_UNUSED_VARIABLE = YES; 500 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 501 | MTL_ENABLE_DEBUG_INFO = NO; 502 | SDKROOT = iphoneos; 503 | VALIDATE_PRODUCT = YES; 504 | }; 505 | name = Release; 506 | }; 507 | A06FCA8B2004FD3200FE8D2C /* Debug */ = { 508 | isa = XCBuildConfiguration; 509 | baseConfigurationReference = 4ACF912A1DF655079D419F98 /* Pods-GBNoDataDemo.debug.xcconfig */; 510 | buildSettings = { 511 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 512 | CODE_SIGN_STYLE = Automatic; 513 | DEVELOPMENT_TEAM = C2Y4NGKAHJ; 514 | INFOPLIST_FILE = GBNoDataDemo/Info.plist; 515 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 516 | PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemo; 517 | PRODUCT_NAME = "$(TARGET_NAME)"; 518 | TARGETED_DEVICE_FAMILY = "1,2"; 519 | }; 520 | name = Debug; 521 | }; 522 | A06FCA8C2004FD3200FE8D2C /* Release */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = 4CED3D497882098841D468F3 /* Pods-GBNoDataDemo.release.xcconfig */; 525 | buildSettings = { 526 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 527 | CODE_SIGN_STYLE = Automatic; 528 | DEVELOPMENT_TEAM = C2Y4NGKAHJ; 529 | INFOPLIST_FILE = GBNoDataDemo/Info.plist; 530 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 531 | PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemo; 532 | PRODUCT_NAME = "$(TARGET_NAME)"; 533 | TARGETED_DEVICE_FAMILY = "1,2"; 534 | }; 535 | name = Release; 536 | }; 537 | A06FCA8E2004FD3200FE8D2C /* Debug */ = { 538 | isa = XCBuildConfiguration; 539 | buildSettings = { 540 | BUNDLE_LOADER = "$(TEST_HOST)"; 541 | CODE_SIGN_STYLE = Automatic; 542 | DEVELOPMENT_TEAM = C2Y4NGKAHJ; 543 | INFOPLIST_FILE = GBNoDataDemoTests/Info.plist; 544 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 545 | PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemoTests; 546 | PRODUCT_NAME = "$(TARGET_NAME)"; 547 | TARGETED_DEVICE_FAMILY = "1,2"; 548 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GBNoDataDemo.app/GBNoDataDemo"; 549 | }; 550 | name = Debug; 551 | }; 552 | A06FCA8F2004FD3200FE8D2C /* Release */ = { 553 | isa = XCBuildConfiguration; 554 | buildSettings = { 555 | BUNDLE_LOADER = "$(TEST_HOST)"; 556 | CODE_SIGN_STYLE = Automatic; 557 | DEVELOPMENT_TEAM = C2Y4NGKAHJ; 558 | INFOPLIST_FILE = GBNoDataDemoTests/Info.plist; 559 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 560 | PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemoTests; 561 | PRODUCT_NAME = "$(TARGET_NAME)"; 562 | TARGETED_DEVICE_FAMILY = "1,2"; 563 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GBNoDataDemo.app/GBNoDataDemo"; 564 | }; 565 | name = Release; 566 | }; 567 | A06FCA912004FD3200FE8D2C /* Debug */ = { 568 | isa = XCBuildConfiguration; 569 | buildSettings = { 570 | CODE_SIGN_STYLE = Automatic; 571 | DEVELOPMENT_TEAM = C2Y4NGKAHJ; 572 | INFOPLIST_FILE = GBNoDataDemoUITests/Info.plist; 573 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 574 | PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemoUITests; 575 | PRODUCT_NAME = "$(TARGET_NAME)"; 576 | TARGETED_DEVICE_FAMILY = "1,2"; 577 | TEST_TARGET_NAME = GBNoDataDemo; 578 | }; 579 | name = Debug; 580 | }; 581 | A06FCA922004FD3200FE8D2C /* Release */ = { 582 | isa = XCBuildConfiguration; 583 | buildSettings = { 584 | CODE_SIGN_STYLE = Automatic; 585 | DEVELOPMENT_TEAM = C2Y4NGKAHJ; 586 | INFOPLIST_FILE = GBNoDataDemoUITests/Info.plist; 587 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 588 | PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemoUITests; 589 | PRODUCT_NAME = "$(TARGET_NAME)"; 590 | TARGETED_DEVICE_FAMILY = "1,2"; 591 | TEST_TARGET_NAME = GBNoDataDemo; 592 | }; 593 | name = Release; 594 | }; 595 | /* End XCBuildConfiguration section */ 596 | 597 | /* Begin XCConfigurationList section */ 598 | A06FCA592004FD3200FE8D2C /* Build configuration list for PBXProject "GBNoDataDemo" */ = { 599 | isa = XCConfigurationList; 600 | buildConfigurations = ( 601 | A06FCA882004FD3200FE8D2C /* Debug */, 602 | A06FCA892004FD3200FE8D2C /* Release */, 603 | ); 604 | defaultConfigurationIsVisible = 0; 605 | defaultConfigurationName = Release; 606 | }; 607 | A06FCA8A2004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemo" */ = { 608 | isa = XCConfigurationList; 609 | buildConfigurations = ( 610 | A06FCA8B2004FD3200FE8D2C /* Debug */, 611 | A06FCA8C2004FD3200FE8D2C /* Release */, 612 | ); 613 | defaultConfigurationIsVisible = 0; 614 | defaultConfigurationName = Release; 615 | }; 616 | A06FCA8D2004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemoTests" */ = { 617 | isa = XCConfigurationList; 618 | buildConfigurations = ( 619 | A06FCA8E2004FD3200FE8D2C /* Debug */, 620 | A06FCA8F2004FD3200FE8D2C /* Release */, 621 | ); 622 | defaultConfigurationIsVisible = 0; 623 | defaultConfigurationName = Release; 624 | }; 625 | A06FCA902004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemoUITests" */ = { 626 | isa = XCConfigurationList; 627 | buildConfigurations = ( 628 | A06FCA912004FD3200FE8D2C /* Debug */, 629 | A06FCA922004FD3200FE8D2C /* Release */, 630 | ); 631 | defaultConfigurationIsVisible = 0; 632 | defaultConfigurationName = Release; 633 | }; 634 | /* End XCConfigurationList section */ 635 | }; 636 | rootObject = A06FCA562004FD3200FE8D2C /* Project object */; 637 | } 638 | -------------------------------------------------------------------------------- /GBNoDataDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GBNoDataDemo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /GBNoDataDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // GBNoDataDemo 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /GBNoDataDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // GBNoDataDemo 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // 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. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 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 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // 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. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // 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. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /GBNoDataDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /GBNoDataDemo/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 | -------------------------------------------------------------------------------- /GBNoDataDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /GBNoDataDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /GBNoDataDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // GBNoDataDemo 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /GBNoDataDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // GBNoDataDemo 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import 11 | 12 | @interface ViewController () 13 | @property (nonatomic, strong) NSArray *data; 14 | @property (nonatomic, strong) UITableView *tableView; 15 | @end 16 | 17 | @implementation ViewController 18 | 19 | - (void)viewDidLoad { 20 | [super viewDidLoad]; 21 | // Do any additional setup after loading the view, typically from a nib 22 | [self.view addSubview:self.tableView]; 23 | [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"UITableViewCellID"]; 24 | _data = @[@"删除数据",]; 25 | UIView *view = [[UIView alloc] initWithFrame:self.view.bounds]; 26 | view.backgroundColor = [UIColor yellowColor]; 27 | self.tableView.customNoDataView = view; 28 | __weak typeof(self) weakSelf = self; 29 | self.tableView.callBack = ^(UIView *view) { 30 | weakSelf.data = @[@"删除数据,显示提示",]; 31 | [weakSelf.tableView reloadData]; 32 | }; 33 | } 34 | 35 | 36 | #pragma mark - tableView Delegate 37 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { 38 | return 1; 39 | } 40 | 41 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 42 | return _data.count; 43 | } 44 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 45 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"UITableViewCellID" forIndexPath:indexPath]; 46 | cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 47 | cell.textLabel.text = _data[indexPath.row]; 48 | return cell; 49 | } 50 | 51 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 52 | switch (indexPath.row) { 53 | case 0: 54 | _data = @[]; 55 | [tableView reloadData]; 56 | break; 57 | default: 58 | break; 59 | } 60 | } 61 | 62 | - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { 63 | return 0.0001; 64 | } 65 | - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { 66 | return 0.0001; 67 | } 68 | 69 | - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { 70 | return [[UIView alloc] init]; 71 | } 72 | 73 | - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { 74 | return [[UIView alloc] init]; 75 | } 76 | 77 | - (UITableView *)tableView { 78 | if (_tableView == nil) { 79 | _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStyleGrouped]; 80 | _tableView.backgroundColor = [UIColor whiteColor]; 81 | _tableView.rowHeight = 50; 82 | _tableView.delegate = self; 83 | _tableView.dataSource = self; 84 | _tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine; 85 | } 86 | return _tableView; 87 | } 88 | 89 | @end 90 | 91 | -------------------------------------------------------------------------------- /GBNoDataDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // GBNoDataDemo 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /GBNoDataDemoTests/GBNoDataDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // GBNoDataDemoTests.m 3 | // GBNoDataDemoTests 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface GBNoDataDemoTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation GBNoDataDemoTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /GBNoDataDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /GBNoDataDemoUITests/GBNoDataDemoUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // GBNoDataDemoUITests.m 3 | // GBNoDataDemoUITests 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface GBNoDataDemoUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation GBNoDataDemoUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /GBNoDataDemoUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '8.0' 2 | source 'https://github.com/CocoaPods/Specs.git' 3 | 4 | target 'GBNoDataDemo' do 5 | pod 'GBNoData' 6 | end 7 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - GBNoData (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - GBNoData 6 | 7 | SPEC CHECKSUMS: 8 | GBNoData: 0e903d360e6ab6fab5edcfa9c51abfce45f5b4d6 9 | 10 | PODFILE CHECKSUM: 27d6d71736225898df946484fe136181add19bed 11 | 12 | COCOAPODS: 1.3.1 13 | -------------------------------------------------------------------------------- /Pods/GBNoData/GBNoData/Classes/GBRuntimeUtil.h: -------------------------------------------------------------------------------- 1 | // 2 | // GBRuntimeUtil.h 3 | // GBNoDataView 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface GBRuntimeUtil : NSObject 13 | + (void)swizzMethod:(Class)viewClass oriSel:(SEL)oriSel newSel:(SEL)newSel; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Pods/GBNoData/GBNoData/Classes/GBRuntimeUtil.m: -------------------------------------------------------------------------------- 1 | // 2 | // GBRuntimeUtil.m 3 | // GBNoDataView 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import "GBRuntimeUtil.h" 10 | #import 11 | 12 | @implementation GBRuntimeUtil 13 | void swizzMethod(Class class, SEL oriSel, SEL newSel) { 14 | 15 | Method oriMethod = class_getInstanceMethod(class, oriSel); 16 | Method newMethod = class_getInstanceMethod(class, newSel); 17 | 18 | BOOL success = class_addMethod(class, oriSel, method_getImplementation(newMethod), method_getTypeEncoding(newMethod)); 19 | if (success) { 20 | class_replaceMethod(class, newSel, method_getImplementation(oriMethod), method_getTypeEncoding(oriMethod)); 21 | } else { 22 | method_exchangeImplementations(oriMethod, newMethod); 23 | } 24 | } 25 | 26 | + (void)swizzMethod:(Class)viewClass oriSel:(SEL)oriSel newSel:(SEL)newSel { 27 | swizzMethod(viewClass, oriSel, newSel); 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Pods/GBNoData/GBNoData/Classes/UICollectionView+NoData.h: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionView+NoData.h 3 | // GBNoDataView 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef void(^LoadDataCallBack)(UIView *view); 12 | 13 | @interface UICollectionView (NoData) 14 | 15 | //自定义无数据提示View 16 | @property (nonatomic, strong) UIView *customNoDataView; 17 | //Click回调 18 | @property (nonatomic, copy) LoadDataCallBack callBack; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Pods/GBNoData/GBNoData/Classes/UICollectionView+NoData.m: -------------------------------------------------------------------------------- 1 | // 2 | // UICollectionView+NoData.m 3 | // GBNoDataView 4 | // 5 | // Created by Lucas on 2018/1/9. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import "UICollectionView+NoData.h" 10 | #import 11 | #import "GBRuntimeUtil.h" 12 | 13 | @implementation UICollectionView (NoData) 14 | 15 | + (void)load { 16 | SEL selectors[] = { 17 | @selector(reloadData), 18 | @selector(insertSections:), 19 | @selector(deleteSections:), 20 | @selector(reloadSections:), 21 | }; 22 | 23 | for (NSUInteger index = 0; index < sizeof(selectors) / sizeof(SEL); ++index) { 24 | SEL originalSelector = selectors[index]; 25 | SEL swizzledSelector = NSSelectorFromString([@"gb_" stringByAppendingString:NSStringFromSelector(originalSelector)]); 26 | [GBRuntimeUtil swizzMethod:[self class] oriSel:originalSelector newSel:swizzledSelector]; 27 | } 28 | } 29 | 30 | - (void)gb_insertSections:(NSIndexSet *)sections{ 31 | [self gb_insertSections:sections]; 32 | [self showNoDataView]; 33 | } 34 | 35 | - (void)gb_deleteSections:(NSIndexSet *)sections { 36 | [self gb_deleteSections:sections]; 37 | [self showNoDataView]; 38 | } 39 | 40 | - (void)gb_reloadSections:(NSIndexSet *)sections { 41 | [self gb_reloadSections:sections]; 42 | [self showNoDataView]; 43 | } 44 | 45 | - (void)showNoDataView { 46 | if (self.showNoData) { 47 | NSInteger sectionCount = self.numberOfSections; 48 | NSInteger rowCount = 0; 49 | for (int i = 0; i < sectionCount; i++) { 50 | rowCount += [self.dataSource collectionView:self numberOfItemsInSection:i]; 51 | } 52 | if (rowCount == 0 && self.customNoDataView) { 53 | self.backgroundView = [self customNoDataView]; 54 | } else { 55 | self.backgroundView = [[UIView alloc] init]; 56 | } 57 | } 58 | } 59 | 60 | #pragma mark - setter && getter 61 | - (void)setShowNoData:(BOOL)showNoData { 62 | objc_setAssociatedObject(self, @selector(showNoData), @(showNoData), OBJC_ASSOCIATION_COPY_NONATOMIC); 63 | } 64 | 65 | - (BOOL)showNoData { 66 | return objc_getAssociatedObject(self, _cmd) == nil ? YES : [objc_getAssociatedObject(self, _cmd) boolValue]; 67 | } 68 | 69 | - (void)setCustomNoDataView:(UIView *)customNoDataView { 70 | self.showNoData = YES; 71 | objc_setAssociatedObject(self, @selector(customNoDataView), customNoDataView, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 72 | } 73 | 74 | - (UIView *)customNoDataView { 75 | return objc_getAssociatedObject(self, _cmd); 76 | } 77 | 78 | - (void)setCallBack:(LoadDataCallBack)callBack { 79 | self.showNoData = YES; 80 | objc_setAssociatedObject(self, @selector(callBack), callBack, OBJC_ASSOCIATION_COPY_NONATOMIC); 81 | } 82 | 83 | - (void (^)(UIView *))callBack { 84 | return objc_getAssociatedObject(self, _cmd); 85 | } 86 | 87 | - (void)gb_tapDefalutNoDataView:(UITapGestureRecognizer *)tap { 88 | self.callBack ? self.callBack(self.customNoDataView) : nil; 89 | } 90 | 91 | @end 92 | -------------------------------------------------------------------------------- /Pods/GBNoData/GBNoData/Classes/UITableView+NoData.h: -------------------------------------------------------------------------------- 1 | // 2 | // UITableView+NoData.h 3 | // GBNoDataView 4 | // 5 | // Created by Lucas on 2018/1/8. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef void(^LoadDataCallBack)(UIView *view); 12 | 13 | @interface UITableView (NoData) 14 | //自定义无数据提示View 15 | @property (nonatomic, strong) UIView *customNoDataView; 16 | //Click回调 17 | @property (nonatomic, copy) LoadDataCallBack callBack; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Pods/GBNoData/GBNoData/Classes/UITableView+NoData.m: -------------------------------------------------------------------------------- 1 | // 2 | // UITableView+NoData.m 3 | // GBNoDataView 4 | // 5 | // Created by Lucas on 2018/1/8. 6 | // Copyright © 2018年 Lucas. All rights reserved. 7 | // 8 | 9 | #import "UITableView+NoData.h" 10 | #import 11 | #import "GBRuntimeUtil.h" 12 | 13 | @implementation UITableView (NoData) 14 | 15 | + (void)load { 16 | SEL selectors[] = { 17 | @selector(reloadData), 18 | @selector(insertSections:withRowAnimation:), 19 | @selector(deleteSections:withRowAnimation:), 20 | @selector(reloadSections:withRowAnimation:), 21 | @selector(insertRowsAtIndexPaths:withRowAnimation:), 22 | @selector(deleteRowsAtIndexPaths:withRowAnimation:), 23 | @selector(reloadRowsAtIndexPaths:withRowAnimation:), 24 | }; 25 | 26 | for (NSUInteger index = 0; index < sizeof(selectors) / sizeof(SEL); ++index) { 27 | SEL originalSelector = selectors[index]; 28 | SEL swizzledSelector = NSSelectorFromString([@"gb_" stringByAppendingString:NSStringFromSelector(originalSelector)]); 29 | 30 | [GBRuntimeUtil swizzMethod:[self class] oriSel:originalSelector newSel:swizzledSelector]; 31 | } 32 | } 33 | 34 | - (void)gb_reloadData { 35 | [self gb_reloadData]; 36 | [self showNoDataView]; 37 | UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(gb_tapDefalutNoDataView:)]; 38 | [self.customNoDataView addGestureRecognizer:tap]; 39 | } 40 | 41 | - (void)gb_insertSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation { 42 | [self gb_insertSections:sections withRowAnimation:animation]; 43 | [self showNoDataView]; 44 | } 45 | 46 | - (void)gb_deleteSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation { 47 | [self gb_deleteSections:sections withRowAnimation:animation]; 48 | [self showNoDataView]; 49 | } 50 | 51 | - (void)gb_reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation { 52 | [self gb_reloadSections:sections withRowAnimation:animation]; 53 | [self showNoDataView]; 54 | } 55 | 56 | - (void)gb_insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation { 57 | [self gb_insertRowsAtIndexPaths:indexPaths withRowAnimation:animation]; 58 | [self showNoDataView]; 59 | } 60 | 61 | - (void)gb_deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation { 62 | [self gb_deleteRowsAtIndexPaths:indexPaths withRowAnimation:animation]; 63 | [self showNoDataView]; 64 | } 65 | 66 | - (void)gb_reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation { 67 | [self gb_reloadRowsAtIndexPaths:indexPaths withRowAnimation:animation]; 68 | [self showNoDataView]; 69 | } 70 | 71 | - (void)showNoDataView { 72 | if (self.showNoData) { 73 | NSInteger sectionCount = self.numberOfSections; 74 | NSInteger rowCount = 0; 75 | for (int i = 0; i < sectionCount; i++) { 76 | rowCount += [self.dataSource tableView:self numberOfRowsInSection:i]; 77 | } 78 | if (rowCount == 0 && self.customNoDataView) { 79 | self.backgroundView = [self customNoDataView]; 80 | } else { 81 | self.backgroundView = [[UIView alloc] init]; 82 | } 83 | } 84 | } 85 | 86 | #pragma mark - setter && getter 87 | - (void)setShowNoData:(BOOL)showNoData { 88 | objc_setAssociatedObject(self, @selector(showNoData), @(showNoData), OBJC_ASSOCIATION_COPY_NONATOMIC); 89 | } 90 | 91 | - (BOOL)showNoData { 92 | return objc_getAssociatedObject(self, _cmd) == nil ? YES : [objc_getAssociatedObject(self, _cmd) boolValue]; 93 | } 94 | 95 | - (void)setCustomNoDataView:(UIView *)customNoDataView { 96 | self.showNoData = YES; 97 | objc_setAssociatedObject(self, @selector(customNoDataView), customNoDataView, OBJC_ASSOCIATION_RETAIN_NONATOMIC); 98 | } 99 | 100 | - (UIView *)customNoDataView { 101 | return objc_getAssociatedObject(self, _cmd); 102 | } 103 | 104 | - (void)setCallBack:(LoadDataCallBack)callBack { 105 | self.showNoData = YES; 106 | objc_setAssociatedObject(self, @selector(callBack), callBack, OBJC_ASSOCIATION_COPY_NONATOMIC); 107 | } 108 | 109 | - (void (^)(UIView *))callBack { 110 | return objc_getAssociatedObject(self, _cmd); 111 | } 112 | 113 | - (void)gb_tapDefalutNoDataView:(UITapGestureRecognizer *)tap { 114 | 115 | self.callBack ? self.callBack(self.customNoDataView) : nil; 116 | } 117 | 118 | @end 119 | -------------------------------------------------------------------------------- /Pods/GBNoData/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 Lucas 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. 20 | -------------------------------------------------------------------------------- /Pods/GBNoData/README.md: -------------------------------------------------------------------------------- 1 | # GBNoData 2 | 3 | 4 | ## Example 5 | 6 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 7 | 8 | ## Requirements 9 | 10 | ## Installation 11 | 12 | GBNoData is available through [CocoaPods](http://cocoapods.org). To install 13 | it, simply add the following line to your Podfile: 14 | 15 | ```ruby 16 | pod "GBNoData" 17 | ``` 18 | 19 | ## Author 20 | 21 | Lucas, gaobo_it@163.com 22 | 23 | ## License 24 | 25 | GBNoData is available under the MIT license. See the LICENSE file for more info. 26 | -------------------------------------------------------------------------------- /Pods/Headers/Private/GBNoData/GBRuntimeUtil.h: -------------------------------------------------------------------------------- 1 | ../../../GBNoData/GBNoData/Classes/GBRuntimeUtil.h -------------------------------------------------------------------------------- /Pods/Headers/Private/GBNoData/UICollectionView+NoData.h: -------------------------------------------------------------------------------- 1 | ../../../GBNoData/GBNoData/Classes/UICollectionView+NoData.h -------------------------------------------------------------------------------- /Pods/Headers/Private/GBNoData/UITableView+NoData.h: -------------------------------------------------------------------------------- 1 | ../../../GBNoData/GBNoData/Classes/UITableView+NoData.h -------------------------------------------------------------------------------- /Pods/Headers/Public/GBNoData/GBRuntimeUtil.h: -------------------------------------------------------------------------------- 1 | ../../../GBNoData/GBNoData/Classes/GBRuntimeUtil.h -------------------------------------------------------------------------------- /Pods/Headers/Public/GBNoData/UICollectionView+NoData.h: -------------------------------------------------------------------------------- 1 | ../../../GBNoData/GBNoData/Classes/UICollectionView+NoData.h -------------------------------------------------------------------------------- /Pods/Headers/Public/GBNoData/UITableView+NoData.h: -------------------------------------------------------------------------------- 1 | ../../../GBNoData/GBNoData/Classes/UITableView+NoData.h -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - GBNoData (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - GBNoData 6 | 7 | SPEC CHECKSUMS: 8 | GBNoData: 0e903d360e6ab6fab5edcfa9c51abfce45f5b4d6 9 | 10 | PODFILE CHECKSUM: 27d6d71736225898df946484fe136181add19bed 11 | 12 | COCOAPODS: 1.3.1 13 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 04F329378E762A8D2D851AD48C8D37C8 /* UITableView+NoData.m in Sources */ = {isa = PBXBuildFile; fileRef = FA75EF47A96D869B6B11310D51006C6D /* UITableView+NoData.m */; }; 11 | 1A31FC24ABC2F558D9D3108C1EEECB1A /* Pods-GBNoDataDemo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = BCA255B5C225657B4D6C34DDE45B1F83 /* Pods-GBNoDataDemo-dummy.m */; }; 12 | 4DA718DF4BF1A79376E0F6AC458F47A0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 13 | 5E8510848F328C42A9CF2A1CE94636C8 /* UICollectionView+NoData.h in Headers */ = {isa = PBXBuildFile; fileRef = 3F4EC12E65072E9D673BF9AB15EC3E59 /* UICollectionView+NoData.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 5F21BAA399702210BE3A6374AE8CE2E7 /* GBNoData-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = CC265280F7C3838D54B7045B05CABD10 /* GBNoData-dummy.m */; }; 15 | 66119C514321F9B5427F8BC8B7354B1A /* UICollectionView+NoData.m in Sources */ = {isa = PBXBuildFile; fileRef = B274D9CCF527EBACB153DDF3A7A35A2B /* UICollectionView+NoData.m */; }; 16 | 684B62503B86148C884A399E4E9AE212 /* GBRuntimeUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B45457D9D414DAA766C1DDDEF734476 /* GBRuntimeUtil.m */; }; 17 | A4F4011E90FC3251F2830FB7A2743227 /* UITableView+NoData.h in Headers */ = {isa = PBXBuildFile; fileRef = 2E21A71D2F16667DF2347AFA71E412ED /* UITableView+NoData.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | C4C1DC6995B4A79A3A978599B616C2C5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 19 | EBAA60082B7A7797895F578402E30824 /* GBRuntimeUtil.h in Headers */ = {isa = PBXBuildFile; fileRef = BAF3F00E295B31D1CE3F653EF4226D40 /* GBRuntimeUtil.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 03CAE35EC2134934B604C28B7FFAEB83 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = A086AB2D494FB87153F8A7BB1F5DDBAB; 28 | remoteInfo = GBNoData; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 0B45457D9D414DAA766C1DDDEF734476 /* GBRuntimeUtil.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = GBRuntimeUtil.m; path = GBNoData/Classes/GBRuntimeUtil.m; sourceTree = ""; }; 34 | 14A158ECB5F0863538AF5D7576DF0A08 /* libGBNoData.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libGBNoData.a; path = libGBNoData.a; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 18012F23BF564C280CC54AA03C782936 /* libPods-GBNoDataDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-GBNoDataDemo.a"; path = "libPods-GBNoDataDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 2E21A71D2F16667DF2347AFA71E412ED /* UITableView+NoData.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UITableView+NoData.h"; path = "GBNoData/Classes/UITableView+NoData.h"; sourceTree = ""; }; 37 | 3F4EC12E65072E9D673BF9AB15EC3E59 /* UICollectionView+NoData.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UICollectionView+NoData.h"; path = "GBNoData/Classes/UICollectionView+NoData.h"; sourceTree = ""; }; 38 | 46B669E28AA395753702A99C3ECFC480 /* Pods-GBNoDataDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GBNoDataDemo.release.xcconfig"; sourceTree = ""; }; 39 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 40 | 7437E03A7B9C2106CD6D3DDB8702F748 /* Pods-GBNoDataDemo-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-GBNoDataDemo-acknowledgements.plist"; sourceTree = ""; }; 41 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 42 | A6DCD6B467F995011247946A1D03D270 /* Pods-GBNoDataDemo-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GBNoDataDemo-resources.sh"; sourceTree = ""; }; 43 | AD975EE469F17333FBCD82D7DB8BD588 /* GBNoData.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = GBNoData.xcconfig; sourceTree = ""; }; 44 | B274D9CCF527EBACB153DDF3A7A35A2B /* UICollectionView+NoData.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UICollectionView+NoData.m"; path = "GBNoData/Classes/UICollectionView+NoData.m"; sourceTree = ""; }; 45 | B3838FC5B23F2F35614A3436D6857E32 /* GBNoData-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "GBNoData-prefix.pch"; sourceTree = ""; }; 46 | BAF3F00E295B31D1CE3F653EF4226D40 /* GBRuntimeUtil.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = GBRuntimeUtil.h; path = GBNoData/Classes/GBRuntimeUtil.h; sourceTree = ""; }; 47 | BCA255B5C225657B4D6C34DDE45B1F83 /* Pods-GBNoDataDemo-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-GBNoDataDemo-dummy.m"; sourceTree = ""; }; 48 | BD2D1A89E97DC7DEEC573D272D1FEEC9 /* Pods-GBNoDataDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GBNoDataDemo.debug.xcconfig"; sourceTree = ""; }; 49 | C0D5E4CEDA8C6365214B930F5E394466 /* Pods-GBNoDataDemo-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GBNoDataDemo-frameworks.sh"; sourceTree = ""; }; 50 | CC265280F7C3838D54B7045B05CABD10 /* GBNoData-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "GBNoData-dummy.m"; sourceTree = ""; }; 51 | D6EA38F50EA1465A507ABC8FAEA609CE /* Pods-GBNoDataDemo-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-GBNoDataDemo-acknowledgements.markdown"; sourceTree = ""; }; 52 | FA75EF47A96D869B6B11310D51006C6D /* UITableView+NoData.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UITableView+NoData.m"; path = "GBNoData/Classes/UITableView+NoData.m"; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | F0F2B8D23330418CD5DBB7CC113F93F5 /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | C4C1DC6995B4A79A3A978599B616C2C5 /* Foundation.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | F6081A727F47AE926FB627966C2D005F /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 4DA718DF4BF1A79376E0F6AC458F47A0 /* Foundation.framework in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 11F8E8527D8DD61380AEEC9D8E3E0955 /* Support Files */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | AD975EE469F17333FBCD82D7DB8BD588 /* GBNoData.xcconfig */, 79 | CC265280F7C3838D54B7045B05CABD10 /* GBNoData-dummy.m */, 80 | B3838FC5B23F2F35614A3436D6857E32 /* GBNoData-prefix.pch */, 81 | ); 82 | name = "Support Files"; 83 | path = "../Target Support Files/GBNoData"; 84 | sourceTree = ""; 85 | }; 86 | 19956B91B777899118BCAACE0D97A19F /* GBNoData */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | BAF3F00E295B31D1CE3F653EF4226D40 /* GBRuntimeUtil.h */, 90 | 0B45457D9D414DAA766C1DDDEF734476 /* GBRuntimeUtil.m */, 91 | 3F4EC12E65072E9D673BF9AB15EC3E59 /* UICollectionView+NoData.h */, 92 | B274D9CCF527EBACB153DDF3A7A35A2B /* UICollectionView+NoData.m */, 93 | 2E21A71D2F16667DF2347AFA71E412ED /* UITableView+NoData.h */, 94 | FA75EF47A96D869B6B11310D51006C6D /* UITableView+NoData.m */, 95 | 11F8E8527D8DD61380AEEC9D8E3E0955 /* Support Files */, 96 | ); 97 | name = GBNoData; 98 | path = GBNoData; 99 | sourceTree = ""; 100 | }; 101 | 7DB346D0F39D3F0E887471402A8071AB = { 102 | isa = PBXGroup; 103 | children = ( 104 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 105 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 106 | 936023202D8BA84DFDF6D9DAA8B92B2C /* Pods */, 107 | D27C0C0D6A8B563A4C098D74C2859650 /* Products */, 108 | DA92F5E3FB56C8D0733CB286EFF26EA0 /* Targets Support Files */, 109 | ); 110 | sourceTree = ""; 111 | }; 112 | 936023202D8BA84DFDF6D9DAA8B92B2C /* Pods */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 19956B91B777899118BCAACE0D97A19F /* GBNoData */, 116 | ); 117 | name = Pods; 118 | sourceTree = ""; 119 | }; 120 | B00FD48BE8C4DB0EA5D2F99BD0F75A9F /* Pods-GBNoDataDemo */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | D6EA38F50EA1465A507ABC8FAEA609CE /* Pods-GBNoDataDemo-acknowledgements.markdown */, 124 | 7437E03A7B9C2106CD6D3DDB8702F748 /* Pods-GBNoDataDemo-acknowledgements.plist */, 125 | BCA255B5C225657B4D6C34DDE45B1F83 /* Pods-GBNoDataDemo-dummy.m */, 126 | C0D5E4CEDA8C6365214B930F5E394466 /* Pods-GBNoDataDemo-frameworks.sh */, 127 | A6DCD6B467F995011247946A1D03D270 /* Pods-GBNoDataDemo-resources.sh */, 128 | BD2D1A89E97DC7DEEC573D272D1FEEC9 /* Pods-GBNoDataDemo.debug.xcconfig */, 129 | 46B669E28AA395753702A99C3ECFC480 /* Pods-GBNoDataDemo.release.xcconfig */, 130 | ); 131 | name = "Pods-GBNoDataDemo"; 132 | path = "Target Support Files/Pods-GBNoDataDemo"; 133 | sourceTree = ""; 134 | }; 135 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 139 | ); 140 | name = Frameworks; 141 | sourceTree = ""; 142 | }; 143 | D27C0C0D6A8B563A4C098D74C2859650 /* Products */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 14A158ECB5F0863538AF5D7576DF0A08 /* libGBNoData.a */, 147 | 18012F23BF564C280CC54AA03C782936 /* libPods-GBNoDataDemo.a */, 148 | ); 149 | name = Products; 150 | sourceTree = ""; 151 | }; 152 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 156 | ); 157 | name = iOS; 158 | sourceTree = ""; 159 | }; 160 | DA92F5E3FB56C8D0733CB286EFF26EA0 /* Targets Support Files */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | B00FD48BE8C4DB0EA5D2F99BD0F75A9F /* Pods-GBNoDataDemo */, 164 | ); 165 | name = "Targets Support Files"; 166 | sourceTree = ""; 167 | }; 168 | /* End PBXGroup section */ 169 | 170 | /* Begin PBXHeadersBuildPhase section */ 171 | 05FAF654D0A674695A0DD26ACC5C4F60 /* Headers */ = { 172 | isa = PBXHeadersBuildPhase; 173 | buildActionMask = 2147483647; 174 | files = ( 175 | EBAA60082B7A7797895F578402E30824 /* GBRuntimeUtil.h in Headers */, 176 | 5E8510848F328C42A9CF2A1CE94636C8 /* UICollectionView+NoData.h in Headers */, 177 | A4F4011E90FC3251F2830FB7A2743227 /* UITableView+NoData.h in Headers */, 178 | ); 179 | runOnlyForDeploymentPostprocessing = 0; 180 | }; 181 | /* End PBXHeadersBuildPhase section */ 182 | 183 | /* Begin PBXNativeTarget section */ 184 | A086AB2D494FB87153F8A7BB1F5DDBAB /* GBNoData */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = F69F28562D7665EB1CAC70CF0E78BFA4 /* Build configuration list for PBXNativeTarget "GBNoData" */; 187 | buildPhases = ( 188 | B4D67315440BEDD3AA8C543C36F53D41 /* Sources */, 189 | F6081A727F47AE926FB627966C2D005F /* Frameworks */, 190 | 05FAF654D0A674695A0DD26ACC5C4F60 /* Headers */, 191 | ); 192 | buildRules = ( 193 | ); 194 | dependencies = ( 195 | ); 196 | name = GBNoData; 197 | productName = GBNoData; 198 | productReference = 14A158ECB5F0863538AF5D7576DF0A08 /* libGBNoData.a */; 199 | productType = "com.apple.product-type.library.static"; 200 | }; 201 | F3E7F95C719C33049DFA195E4404A8A2 /* Pods-GBNoDataDemo */ = { 202 | isa = PBXNativeTarget; 203 | buildConfigurationList = 3E9A36E3ED3DBD9204E74506D0A21193 /* Build configuration list for PBXNativeTarget "Pods-GBNoDataDemo" */; 204 | buildPhases = ( 205 | 8C21D5233DFB41CB7070D97AE1F62A24 /* Sources */, 206 | F0F2B8D23330418CD5DBB7CC113F93F5 /* Frameworks */, 207 | ); 208 | buildRules = ( 209 | ); 210 | dependencies = ( 211 | 2893AD800AD63815BE461C4F0A9C82EE /* PBXTargetDependency */, 212 | ); 213 | name = "Pods-GBNoDataDemo"; 214 | productName = "Pods-GBNoDataDemo"; 215 | productReference = 18012F23BF564C280CC54AA03C782936 /* libPods-GBNoDataDemo.a */; 216 | productType = "com.apple.product-type.library.static"; 217 | }; 218 | /* End PBXNativeTarget section */ 219 | 220 | /* Begin PBXProject section */ 221 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 222 | isa = PBXProject; 223 | attributes = { 224 | LastSwiftUpdateCheck = 0830; 225 | LastUpgradeCheck = 0700; 226 | }; 227 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | ); 234 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 235 | productRefGroup = D27C0C0D6A8B563A4C098D74C2859650 /* Products */; 236 | projectDirPath = ""; 237 | projectRoot = ""; 238 | targets = ( 239 | A086AB2D494FB87153F8A7BB1F5DDBAB /* GBNoData */, 240 | F3E7F95C719C33049DFA195E4404A8A2 /* Pods-GBNoDataDemo */, 241 | ); 242 | }; 243 | /* End PBXProject section */ 244 | 245 | /* Begin PBXSourcesBuildPhase section */ 246 | 8C21D5233DFB41CB7070D97AE1F62A24 /* Sources */ = { 247 | isa = PBXSourcesBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | 1A31FC24ABC2F558D9D3108C1EEECB1A /* Pods-GBNoDataDemo-dummy.m in Sources */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | B4D67315440BEDD3AA8C543C36F53D41 /* Sources */ = { 255 | isa = PBXSourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | 5F21BAA399702210BE3A6374AE8CE2E7 /* GBNoData-dummy.m in Sources */, 259 | 684B62503B86148C884A399E4E9AE212 /* GBRuntimeUtil.m in Sources */, 260 | 66119C514321F9B5427F8BC8B7354B1A /* UICollectionView+NoData.m in Sources */, 261 | 04F329378E762A8D2D851AD48C8D37C8 /* UITableView+NoData.m in Sources */, 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | }; 265 | /* End PBXSourcesBuildPhase section */ 266 | 267 | /* Begin PBXTargetDependency section */ 268 | 2893AD800AD63815BE461C4F0A9C82EE /* PBXTargetDependency */ = { 269 | isa = PBXTargetDependency; 270 | name = GBNoData; 271 | target = A086AB2D494FB87153F8A7BB1F5DDBAB /* GBNoData */; 272 | targetProxy = 03CAE35EC2134934B604C28B7FFAEB83 /* PBXContainerItemProxy */; 273 | }; 274 | /* End PBXTargetDependency section */ 275 | 276 | /* Begin XCBuildConfiguration section */ 277 | 18A15F48D80979EB157DC3C7702B2431 /* Debug */ = { 278 | isa = XCBuildConfiguration; 279 | baseConfigurationReference = BD2D1A89E97DC7DEEC573D272D1FEEC9 /* Pods-GBNoDataDemo.debug.xcconfig */; 280 | buildSettings = { 281 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 282 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 283 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 284 | DEBUG_INFORMATION_FORMAT = dwarf; 285 | ENABLE_STRICT_OBJC_MSGSEND = YES; 286 | GCC_NO_COMMON_BLOCKS = YES; 287 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 288 | MACH_O_TYPE = staticlib; 289 | MTL_ENABLE_DEBUG_INFO = YES; 290 | OTHER_LDFLAGS = ""; 291 | OTHER_LIBTOOLFLAGS = ""; 292 | PODS_ROOT = "$(SRCROOT)"; 293 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 294 | PRODUCT_NAME = "$(TARGET_NAME)"; 295 | SDKROOT = iphoneos; 296 | SKIP_INSTALL = YES; 297 | }; 298 | name = Debug; 299 | }; 300 | 1C7D17A37D091C98D2F0DD886C3A9320 /* Debug */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ALWAYS_SEARCH_USER_PATHS = NO; 304 | CLANG_ANALYZER_NONNULL = YES; 305 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 306 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 307 | CLANG_CXX_LIBRARY = "libc++"; 308 | CLANG_ENABLE_MODULES = YES; 309 | CLANG_ENABLE_OBJC_ARC = YES; 310 | CLANG_WARN_BOOL_CONVERSION = YES; 311 | CLANG_WARN_CONSTANT_CONVERSION = YES; 312 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 313 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 314 | CLANG_WARN_EMPTY_BODY = YES; 315 | CLANG_WARN_ENUM_CONVERSION = YES; 316 | CLANG_WARN_INFINITE_RECURSION = YES; 317 | CLANG_WARN_INT_CONVERSION = YES; 318 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 319 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 320 | CLANG_WARN_UNREACHABLE_CODE = YES; 321 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 322 | CODE_SIGNING_REQUIRED = NO; 323 | COPY_PHASE_STRIP = NO; 324 | ENABLE_TESTABILITY = YES; 325 | GCC_C_LANGUAGE_STANDARD = gnu99; 326 | GCC_DYNAMIC_NO_PIC = NO; 327 | GCC_OPTIMIZATION_LEVEL = 0; 328 | GCC_PREPROCESSOR_DEFINITIONS = ( 329 | "POD_CONFIGURATION_DEBUG=1", 330 | "DEBUG=1", 331 | "$(inherited)", 332 | ); 333 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 334 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 335 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 336 | GCC_WARN_UNDECLARED_SELECTOR = YES; 337 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 338 | GCC_WARN_UNUSED_FUNCTION = YES; 339 | GCC_WARN_UNUSED_VARIABLE = YES; 340 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 341 | ONLY_ACTIVE_ARCH = YES; 342 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 343 | STRIP_INSTALLED_PRODUCT = NO; 344 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 345 | SYMROOT = "${SRCROOT}/../build"; 346 | }; 347 | name = Debug; 348 | }; 349 | 2638CA56063D74C6FB5C2738E1B9FD6A /* Release */ = { 350 | isa = XCBuildConfiguration; 351 | baseConfigurationReference = AD975EE469F17333FBCD82D7DB8BD588 /* GBNoData.xcconfig */; 352 | buildSettings = { 353 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 354 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 355 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 356 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 357 | ENABLE_STRICT_OBJC_MSGSEND = YES; 358 | GCC_NO_COMMON_BLOCKS = YES; 359 | GCC_PREFIX_HEADER = "Target Support Files/GBNoData/GBNoData-prefix.pch"; 360 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 361 | MTL_ENABLE_DEBUG_INFO = NO; 362 | OTHER_LDFLAGS = ""; 363 | OTHER_LIBTOOLFLAGS = ""; 364 | PRIVATE_HEADERS_FOLDER_PATH = ""; 365 | PRODUCT_NAME = "$(TARGET_NAME)"; 366 | PUBLIC_HEADERS_FOLDER_PATH = ""; 367 | SDKROOT = iphoneos; 368 | SKIP_INSTALL = YES; 369 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 370 | }; 371 | name = Release; 372 | }; 373 | 34FE9531DA9AF2820790339988D5FF41 /* Release */ = { 374 | isa = XCBuildConfiguration; 375 | buildSettings = { 376 | ALWAYS_SEARCH_USER_PATHS = NO; 377 | CLANG_ANALYZER_NONNULL = YES; 378 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 379 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 380 | CLANG_CXX_LIBRARY = "libc++"; 381 | CLANG_ENABLE_MODULES = YES; 382 | CLANG_ENABLE_OBJC_ARC = YES; 383 | CLANG_WARN_BOOL_CONVERSION = YES; 384 | CLANG_WARN_CONSTANT_CONVERSION = YES; 385 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 386 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 387 | CLANG_WARN_EMPTY_BODY = YES; 388 | CLANG_WARN_ENUM_CONVERSION = YES; 389 | CLANG_WARN_INFINITE_RECURSION = YES; 390 | CLANG_WARN_INT_CONVERSION = YES; 391 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 392 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 393 | CLANG_WARN_UNREACHABLE_CODE = YES; 394 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 395 | CODE_SIGNING_REQUIRED = NO; 396 | COPY_PHASE_STRIP = YES; 397 | ENABLE_NS_ASSERTIONS = NO; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_PREPROCESSOR_DEFINITIONS = ( 400 | "POD_CONFIGURATION_RELEASE=1", 401 | "$(inherited)", 402 | ); 403 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 404 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 405 | GCC_WARN_UNDECLARED_SELECTOR = YES; 406 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 407 | GCC_WARN_UNUSED_FUNCTION = YES; 408 | GCC_WARN_UNUSED_VARIABLE = YES; 409 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 410 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 411 | STRIP_INSTALLED_PRODUCT = NO; 412 | SYMROOT = "${SRCROOT}/../build"; 413 | VALIDATE_PRODUCT = YES; 414 | }; 415 | name = Release; 416 | }; 417 | 8534C30286AEF7E84E3A9927C9C7C11F /* Debug */ = { 418 | isa = XCBuildConfiguration; 419 | baseConfigurationReference = AD975EE469F17333FBCD82D7DB8BD588 /* GBNoData.xcconfig */; 420 | buildSettings = { 421 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 423 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 424 | DEBUG_INFORMATION_FORMAT = dwarf; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | GCC_NO_COMMON_BLOCKS = YES; 427 | GCC_PREFIX_HEADER = "Target Support Files/GBNoData/GBNoData-prefix.pch"; 428 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 429 | MTL_ENABLE_DEBUG_INFO = YES; 430 | OTHER_LDFLAGS = ""; 431 | OTHER_LIBTOOLFLAGS = ""; 432 | PRIVATE_HEADERS_FOLDER_PATH = ""; 433 | PRODUCT_NAME = "$(TARGET_NAME)"; 434 | PUBLIC_HEADERS_FOLDER_PATH = ""; 435 | SDKROOT = iphoneos; 436 | SKIP_INSTALL = YES; 437 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 438 | }; 439 | name = Debug; 440 | }; 441 | AE939269D4AC3DE61CBE80202C78985E /* Release */ = { 442 | isa = XCBuildConfiguration; 443 | baseConfigurationReference = 46B669E28AA395753702A99C3ECFC480 /* Pods-GBNoDataDemo.release.xcconfig */; 444 | buildSettings = { 445 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 446 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 447 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 448 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 449 | ENABLE_STRICT_OBJC_MSGSEND = YES; 450 | GCC_NO_COMMON_BLOCKS = YES; 451 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 452 | MACH_O_TYPE = staticlib; 453 | MTL_ENABLE_DEBUG_INFO = NO; 454 | OTHER_LDFLAGS = ""; 455 | OTHER_LIBTOOLFLAGS = ""; 456 | PODS_ROOT = "$(SRCROOT)"; 457 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SDKROOT = iphoneos; 460 | SKIP_INSTALL = YES; 461 | }; 462 | name = Release; 463 | }; 464 | /* End XCBuildConfiguration section */ 465 | 466 | /* Begin XCConfigurationList section */ 467 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 468 | isa = XCConfigurationList; 469 | buildConfigurations = ( 470 | 1C7D17A37D091C98D2F0DD886C3A9320 /* Debug */, 471 | 34FE9531DA9AF2820790339988D5FF41 /* Release */, 472 | ); 473 | defaultConfigurationIsVisible = 0; 474 | defaultConfigurationName = Release; 475 | }; 476 | 3E9A36E3ED3DBD9204E74506D0A21193 /* Build configuration list for PBXNativeTarget "Pods-GBNoDataDemo" */ = { 477 | isa = XCConfigurationList; 478 | buildConfigurations = ( 479 | 18A15F48D80979EB157DC3C7702B2431 /* Debug */, 480 | AE939269D4AC3DE61CBE80202C78985E /* Release */, 481 | ); 482 | defaultConfigurationIsVisible = 0; 483 | defaultConfigurationName = Release; 484 | }; 485 | F69F28562D7665EB1CAC70CF0E78BFA4 /* Build configuration list for PBXNativeTarget "GBNoData" */ = { 486 | isa = XCConfigurationList; 487 | buildConfigurations = ( 488 | 8534C30286AEF7E84E3A9927C9C7C11F /* Debug */, 489 | 2638CA56063D74C6FB5C2738E1B9FD6A /* Release */, 490 | ); 491 | defaultConfigurationIsVisible = 0; 492 | defaultConfigurationName = Release; 493 | }; 494 | /* End XCConfigurationList section */ 495 | }; 496 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 497 | } 498 | -------------------------------------------------------------------------------- /Pods/Target Support Files/GBNoData/GBNoData-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_GBNoData : NSObject 3 | @end 4 | @implementation PodsDummy_GBNoData 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/GBNoData/GBNoData-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 | -------------------------------------------------------------------------------- /Pods/Target Support Files/GBNoData/GBNoData.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/GBNoData 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/GBNoData" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GBNoData" 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}/GBNoData 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## GBNoData 5 | 6 | Copyright (c) 2018 Lucas 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 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-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) 2018 Lucas <gaobo@funtsui.com> 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 | 37 | License 38 | MIT 39 | Title 40 | GBNoData 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_GBNoDataDemo : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_GBNoDataDemo 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 10 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 11 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 12 | 13 | install_framework() 14 | { 15 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 16 | local source="${BUILT_PRODUCTS_DIR}/$1" 17 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 18 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 19 | elif [ -r "$1" ]; then 20 | local source="$1" 21 | fi 22 | 23 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | 25 | if [ -L "${source}" ]; then 26 | echo "Symlinked..." 27 | source="$(readlink "${source}")" 28 | fi 29 | 30 | # Use filter instead of exclude so missing patterns don't throw errors. 31 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 32 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 33 | 34 | local basename 35 | basename="$(basename -s .framework "$1")" 36 | binary="${destination}/${basename}.framework/${basename}" 37 | if ! [ -r "$binary" ]; then 38 | binary="${destination}/${basename}" 39 | fi 40 | 41 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 42 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 43 | strip_invalid_archs "$binary" 44 | fi 45 | 46 | # Resign the code if required by the build settings to avoid unstable apps 47 | code_sign_if_enabled "${destination}/$(basename "$1")" 48 | 49 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 50 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 51 | local swift_runtime_libs 52 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 53 | for lib in $swift_runtime_libs; do 54 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 55 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 56 | code_sign_if_enabled "${destination}/${lib}" 57 | done 58 | fi 59 | } 60 | 61 | # Copies the dSYM of a vendored framework 62 | install_dsym() { 63 | local source="$1" 64 | if [ -r "$source" ]; then 65 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DWARF_DSYM_FOLDER_PATH}\"" 66 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DWARF_DSYM_FOLDER_PATH}" 67 | fi 68 | } 69 | 70 | # Signs a framework with the provided identity 71 | code_sign_if_enabled() { 72 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 73 | # Use the current code_sign_identitiy 74 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 75 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 76 | 77 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 78 | code_sign_cmd="$code_sign_cmd &" 79 | fi 80 | echo "$code_sign_cmd" 81 | eval "$code_sign_cmd" 82 | fi 83 | } 84 | 85 | # Strip invalid architectures 86 | strip_invalid_archs() { 87 | binary="$1" 88 | # Get architectures for current file 89 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 90 | stripped="" 91 | for arch in $archs; do 92 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 93 | # Strip non-valid architectures in-place 94 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 95 | stripped="$stripped $arch" 96 | fi 97 | done 98 | if [[ "$stripped" ]]; then 99 | echo "Stripped $binary of architectures:$stripped" 100 | fi 101 | } 102 | 103 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 104 | wait 105 | fi 106 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | 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 52 | 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} 53 | ;; 54 | *.xib) 55 | 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 56 | 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} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | 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}" 106 | fi 107 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GBNoData" 3 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/GBNoData" 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GBNoData" 5 | OTHER_LDFLAGS = $(inherited) -ObjC -l"GBNoData" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GBNoData" 3 | LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/GBNoData" 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GBNoData" 5 | OTHER_LDFLAGS = $(inherited) -ObjC -l"GBNoData" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GBNoData 2 | 3 | 4 | ## Example 5 | 6 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 7 | 8 | ## Code 9 | 10 | ```Objective-C 11 | UIView *view = [[UIView alloc] initWithFrame:self.view.bounds]; 12 | view.backgroundColor = [UIColor yellowColor]; 13 | self.tableView.customNoDataView = view; 14 | __weak typeof(self) weakSelf = self; 15 | self.tableView.callBack = ^(UIView *view) { 16 | [weakSelf.tableView reloadData]; 17 | }; 18 | ``` 19 | ## Installation 20 | 21 | GBNoData is available through [CocoaPods](http://cocoapods.org). To install 22 | it, simply add the following line to your Podfile: 23 | 24 | ```ruby 25 | pod "GBNoData" 26 | ``` 27 | 28 | ## Author 29 | 30 | Lucas, gaobo_it@163.com 31 | 32 | ## License 33 | 34 | GBNoData is available under the MIT license. See the LICENSE file for more info. 35 | --------------------------------------------------------------------------------