Repository: Lucas-iOS/GBNoData Branch: master Commit: 32c293ebc349 Files: 38 Total size: 89.5 KB Directory structure: gitextract_cq4tapmh/ ├── .gitignore ├── 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 ├── GBNoDataDemo.xcodeproj/ │ ├── project.pbxproj │ └── project.xcworkspace/ │ └── contents.xcworkspacedata ├── GBNoDataDemo.xcworkspace/ │ └── contents.xcworkspacedata ├── GBNoDataDemoTests/ │ ├── GBNoDataDemoTests.m │ └── Info.plist ├── GBNoDataDemoUITests/ │ ├── GBNoDataDemoUITests.m │ └── Info.plist ├── Podfile ├── Pods/ │ ├── GBNoData/ │ │ ├── GBNoData/ │ │ │ └── Classes/ │ │ │ ├── GBRuntimeUtil.h │ │ │ ├── GBRuntimeUtil.m │ │ │ ├── UICollectionView+NoData.h │ │ │ ├── UICollectionView+NoData.m │ │ │ ├── UITableView+NoData.h │ │ │ └── UITableView+NoData.m │ │ ├── LICENSE │ │ └── README.md │ ├── 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 ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ # OS X .DS_Store # Xcode build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata/ *.xccheckout profile *.moved-aside DerivedData *.hmap *.ipa # Bundler .bundle Carthage # We recommend against adding the Pods directory to your .gitignore. However # you should judge for yourself, the pros and cons are mentioned at: # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control # # Note: if you ignore the Pods directory, make sure to uncomment # `pod install` in .travis.yml # # Pods/ ================================================ FILE: GBNoDataDemo/AppDelegate.h ================================================ // // AppDelegate.h // GBNoDataDemo // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window; @end ================================================ FILE: GBNoDataDemo/AppDelegate.m ================================================ // // AppDelegate.m // GBNoDataDemo // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. return YES; } - (void)applicationWillResignActive:(UIApplication *)application { // 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. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } - (void)applicationDidEnterBackground:(UIApplication *)application { // 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. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } - (void)applicationWillEnterForeground:(UIApplication *)application { // 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. } - (void)applicationDidBecomeActive:(UIApplication *)application { // 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. } - (void)applicationWillTerminate:(UIApplication *)application { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } @end ================================================ FILE: GBNoDataDemo/Assets.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images" : [ { "idiom" : "iphone", "size" : "20x20", "scale" : "2x" }, { "idiom" : "iphone", "size" : "20x20", "scale" : "3x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "2x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "3x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "2x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "3x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "2x" }, { "idiom" : "iphone", "size" : "60x60", "scale" : "3x" }, { "idiom" : "ipad", "size" : "20x20", "scale" : "1x" }, { "idiom" : "ipad", "size" : "20x20", "scale" : "2x" }, { "idiom" : "ipad", "size" : "29x29", "scale" : "1x" }, { "idiom" : "ipad", "size" : "29x29", "scale" : "2x" }, { "idiom" : "ipad", "size" : "40x40", "scale" : "1x" }, { "idiom" : "ipad", "size" : "40x40", "scale" : "2x" }, { "idiom" : "ipad", "size" : "76x76", "scale" : "1x" }, { "idiom" : "ipad", "size" : "76x76", "scale" : "2x" }, { "idiom" : "ipad", "size" : "83.5x83.5", "scale" : "2x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: GBNoDataDemo/Base.lproj/LaunchScreen.storyboard ================================================ ================================================ FILE: GBNoDataDemo/Base.lproj/Main.storyboard ================================================ ================================================ FILE: GBNoDataDemo/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0 CFBundleVersion 1 LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UIRequiredDeviceCapabilities armv7 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight ================================================ FILE: GBNoDataDemo/ViewController.h ================================================ // // ViewController.h // GBNoDataDemo // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import @interface ViewController : UIViewController @end ================================================ FILE: GBNoDataDemo/ViewController.m ================================================ // // ViewController.m // GBNoDataDemo // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import "ViewController.h" #import @interface ViewController () @property (nonatomic, strong) NSArray *data; @property (nonatomic, strong) UITableView *tableView; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib [self.view addSubview:self.tableView]; [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"UITableViewCellID"]; _data = @[@"删除数据",]; UIView *view = [[UIView alloc] initWithFrame:self.view.bounds]; view.backgroundColor = [UIColor yellowColor]; self.tableView.customNoDataView = view; __weak typeof(self) weakSelf = self; self.tableView.callBack = ^(UIView *view) { weakSelf.data = @[@"删除数据,显示提示",]; [weakSelf.tableView reloadData]; }; } #pragma mark - tableView Delegate - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return _data.count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"UITableViewCellID" forIndexPath:indexPath]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; cell.textLabel.text = _data[indexPath.row]; return cell; } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { switch (indexPath.row) { case 0: _data = @[]; [tableView reloadData]; break; default: break; } } - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section { return 0.0001; } - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { return 0.0001; } - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { return [[UIView alloc] init]; } - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { return [[UIView alloc] init]; } - (UITableView *)tableView { if (_tableView == nil) { _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStyleGrouped]; _tableView.backgroundColor = [UIColor whiteColor]; _tableView.rowHeight = 50; _tableView.delegate = self; _tableView.dataSource = self; _tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine; } return _tableView; } @end ================================================ FILE: GBNoDataDemo/main.m ================================================ // // main.m // GBNoDataDemo // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } ================================================ FILE: GBNoDataDemo.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 48; objects = { /* Begin PBXBuildFile section */ A06FCA632004FD3200FE8D2C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA622004FD3200FE8D2C /* AppDelegate.m */; }; A06FCA662004FD3200FE8D2C /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA652004FD3200FE8D2C /* ViewController.m */; }; A06FCA692004FD3200FE8D2C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A06FCA672004FD3200FE8D2C /* Main.storyboard */; }; A06FCA6B2004FD3200FE8D2C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A06FCA6A2004FD3200FE8D2C /* Assets.xcassets */; }; A06FCA6E2004FD3200FE8D2C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A06FCA6C2004FD3200FE8D2C /* LaunchScreen.storyboard */; }; A06FCA712004FD3200FE8D2C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA702004FD3200FE8D2C /* main.m */; }; A06FCA7B2004FD3200FE8D2C /* GBNoDataDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA7A2004FD3200FE8D2C /* GBNoDataDemoTests.m */; }; A06FCA862004FD3200FE8D2C /* GBNoDataDemoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = A06FCA852004FD3200FE8D2C /* GBNoDataDemoUITests.m */; }; BDC2DA65B43210725BEC532E /* libPods-GBNoDataDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 70B8B429306D08CF7312AE09 /* libPods-GBNoDataDemo.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ A06FCA772004FD3200FE8D2C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = A06FCA562004FD3200FE8D2C /* Project object */; proxyType = 1; remoteGlobalIDString = A06FCA5D2004FD3200FE8D2C; remoteInfo = GBNoDataDemo; }; A06FCA822004FD3200FE8D2C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = A06FCA562004FD3200FE8D2C /* Project object */; proxyType = 1; remoteGlobalIDString = A06FCA5D2004FD3200FE8D2C; remoteInfo = GBNoDataDemo; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ 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 = ""; }; 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 = ""; }; 70B8B429306D08CF7312AE09 /* libPods-GBNoDataDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-GBNoDataDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; A06FCA5E2004FD3200FE8D2C /* GBNoDataDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GBNoDataDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; A06FCA612004FD3200FE8D2C /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; A06FCA622004FD3200FE8D2C /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; A06FCA642004FD3200FE8D2C /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; A06FCA652004FD3200FE8D2C /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; A06FCA682004FD3200FE8D2C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; A06FCA6A2004FD3200FE8D2C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; A06FCA6D2004FD3200FE8D2C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; A06FCA6F2004FD3200FE8D2C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; A06FCA702004FD3200FE8D2C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; A06FCA762004FD3200FE8D2C /* GBNoDataDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GBNoDataDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; A06FCA7A2004FD3200FE8D2C /* GBNoDataDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GBNoDataDemoTests.m; sourceTree = ""; }; A06FCA7C2004FD3200FE8D2C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; A06FCA812004FD3200FE8D2C /* GBNoDataDemoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GBNoDataDemoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; A06FCA852004FD3200FE8D2C /* GBNoDataDemoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GBNoDataDemoUITests.m; sourceTree = ""; }; A06FCA872004FD3200FE8D2C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ A06FCA5B2004FD3200FE8D2C /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( BDC2DA65B43210725BEC532E /* libPods-GBNoDataDemo.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; A06FCA732004FD3200FE8D2C /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; A06FCA7E2004FD3200FE8D2C /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 28588F7B8A06CF993562BFD0 /* Frameworks */ = { isa = PBXGroup; children = ( 70B8B429306D08CF7312AE09 /* libPods-GBNoDataDemo.a */, ); name = Frameworks; sourceTree = ""; }; 5459A535FB25DCEF78B887F3 /* Pods */ = { isa = PBXGroup; children = ( 4ACF912A1DF655079D419F98 /* Pods-GBNoDataDemo.debug.xcconfig */, 4CED3D497882098841D468F3 /* Pods-GBNoDataDemo.release.xcconfig */, ); name = Pods; sourceTree = ""; }; A06FCA552004FD3200FE8D2C = { isa = PBXGroup; children = ( A06FCA602004FD3200FE8D2C /* GBNoDataDemo */, A06FCA792004FD3200FE8D2C /* GBNoDataDemoTests */, A06FCA842004FD3200FE8D2C /* GBNoDataDemoUITests */, A06FCA5F2004FD3200FE8D2C /* Products */, 5459A535FB25DCEF78B887F3 /* Pods */, 28588F7B8A06CF993562BFD0 /* Frameworks */, ); sourceTree = ""; }; A06FCA5F2004FD3200FE8D2C /* Products */ = { isa = PBXGroup; children = ( A06FCA5E2004FD3200FE8D2C /* GBNoDataDemo.app */, A06FCA762004FD3200FE8D2C /* GBNoDataDemoTests.xctest */, A06FCA812004FD3200FE8D2C /* GBNoDataDemoUITests.xctest */, ); name = Products; sourceTree = ""; }; A06FCA602004FD3200FE8D2C /* GBNoDataDemo */ = { isa = PBXGroup; children = ( A06FCA612004FD3200FE8D2C /* AppDelegate.h */, A06FCA622004FD3200FE8D2C /* AppDelegate.m */, A06FCA642004FD3200FE8D2C /* ViewController.h */, A06FCA652004FD3200FE8D2C /* ViewController.m */, A06FCA672004FD3200FE8D2C /* Main.storyboard */, A06FCA6A2004FD3200FE8D2C /* Assets.xcassets */, A06FCA6C2004FD3200FE8D2C /* LaunchScreen.storyboard */, A06FCA6F2004FD3200FE8D2C /* Info.plist */, A06FCA702004FD3200FE8D2C /* main.m */, ); path = GBNoDataDemo; sourceTree = ""; }; A06FCA792004FD3200FE8D2C /* GBNoDataDemoTests */ = { isa = PBXGroup; children = ( A06FCA7A2004FD3200FE8D2C /* GBNoDataDemoTests.m */, A06FCA7C2004FD3200FE8D2C /* Info.plist */, ); path = GBNoDataDemoTests; sourceTree = ""; }; A06FCA842004FD3200FE8D2C /* GBNoDataDemoUITests */ = { isa = PBXGroup; children = ( A06FCA852004FD3200FE8D2C /* GBNoDataDemoUITests.m */, A06FCA872004FD3200FE8D2C /* Info.plist */, ); path = GBNoDataDemoUITests; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ A06FCA5D2004FD3200FE8D2C /* GBNoDataDemo */ = { isa = PBXNativeTarget; buildConfigurationList = A06FCA8A2004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemo" */; buildPhases = ( 30B48E68C83C81B96BB58E78 /* [CP] Check Pods Manifest.lock */, A06FCA5A2004FD3200FE8D2C /* Sources */, A06FCA5B2004FD3200FE8D2C /* Frameworks */, A06FCA5C2004FD3200FE8D2C /* Resources */, 5EEAEC0050918B3D6C6AB570 /* [CP] Embed Pods Frameworks */, 69835BFE42459BB0B0CC62D2 /* [CP] Copy Pods Resources */, ); buildRules = ( ); dependencies = ( ); name = GBNoDataDemo; productName = GBNoDataDemo; productReference = A06FCA5E2004FD3200FE8D2C /* GBNoDataDemo.app */; productType = "com.apple.product-type.application"; }; A06FCA752004FD3200FE8D2C /* GBNoDataDemoTests */ = { isa = PBXNativeTarget; buildConfigurationList = A06FCA8D2004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemoTests" */; buildPhases = ( A06FCA722004FD3200FE8D2C /* Sources */, A06FCA732004FD3200FE8D2C /* Frameworks */, A06FCA742004FD3200FE8D2C /* Resources */, ); buildRules = ( ); dependencies = ( A06FCA782004FD3200FE8D2C /* PBXTargetDependency */, ); name = GBNoDataDemoTests; productName = GBNoDataDemoTests; productReference = A06FCA762004FD3200FE8D2C /* GBNoDataDemoTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; A06FCA802004FD3200FE8D2C /* GBNoDataDemoUITests */ = { isa = PBXNativeTarget; buildConfigurationList = A06FCA902004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemoUITests" */; buildPhases = ( A06FCA7D2004FD3200FE8D2C /* Sources */, A06FCA7E2004FD3200FE8D2C /* Frameworks */, A06FCA7F2004FD3200FE8D2C /* Resources */, ); buildRules = ( ); dependencies = ( A06FCA832004FD3200FE8D2C /* PBXTargetDependency */, ); name = GBNoDataDemoUITests; productName = GBNoDataDemoUITests; productReference = A06FCA812004FD3200FE8D2C /* GBNoDataDemoUITests.xctest */; productType = "com.apple.product-type.bundle.ui-testing"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ A06FCA562004FD3200FE8D2C /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 0920; ORGANIZATIONNAME = Lucas; TargetAttributes = { A06FCA5D2004FD3200FE8D2C = { CreatedOnToolsVersion = 9.2; ProvisioningStyle = Automatic; }; A06FCA752004FD3200FE8D2C = { CreatedOnToolsVersion = 9.2; ProvisioningStyle = Automatic; TestTargetID = A06FCA5D2004FD3200FE8D2C; }; A06FCA802004FD3200FE8D2C = { CreatedOnToolsVersion = 9.2; ProvisioningStyle = Automatic; TestTargetID = A06FCA5D2004FD3200FE8D2C; }; }; }; buildConfigurationList = A06FCA592004FD3200FE8D2C /* Build configuration list for PBXProject "GBNoDataDemo" */; compatibilityVersion = "Xcode 8.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = A06FCA552004FD3200FE8D2C; productRefGroup = A06FCA5F2004FD3200FE8D2C /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( A06FCA5D2004FD3200FE8D2C /* GBNoDataDemo */, A06FCA752004FD3200FE8D2C /* GBNoDataDemoTests */, A06FCA802004FD3200FE8D2C /* GBNoDataDemoUITests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ A06FCA5C2004FD3200FE8D2C /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( A06FCA6E2004FD3200FE8D2C /* LaunchScreen.storyboard in Resources */, A06FCA6B2004FD3200FE8D2C /* Assets.xcassets in Resources */, A06FCA692004FD3200FE8D2C /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; A06FCA742004FD3200FE8D2C /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; A06FCA7F2004FD3200FE8D2C /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ 30B48E68C83C81B96BB58E78 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( "${PODS_PODFILE_DIR_PATH}/Podfile.lock", "${PODS_ROOT}/Manifest.lock", ); name = "[CP] Check Pods Manifest.lock"; outputPaths = ( "$(DERIVED_FILE_DIR)/Pods-GBNoDataDemo-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; 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"; showEnvVarsInLog = 0; }; 5EEAEC0050918B3D6C6AB570 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; 69835BFE42459BB0B0CC62D2 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "[CP] Copy Pods Resources"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-resources.sh\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ A06FCA5A2004FD3200FE8D2C /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( A06FCA662004FD3200FE8D2C /* ViewController.m in Sources */, A06FCA712004FD3200FE8D2C /* main.m in Sources */, A06FCA632004FD3200FE8D2C /* AppDelegate.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; A06FCA722004FD3200FE8D2C /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( A06FCA7B2004FD3200FE8D2C /* GBNoDataDemoTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; A06FCA7D2004FD3200FE8D2C /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( A06FCA862004FD3200FE8D2C /* GBNoDataDemoUITests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ A06FCA782004FD3200FE8D2C /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = A06FCA5D2004FD3200FE8D2C /* GBNoDataDemo */; targetProxy = A06FCA772004FD3200FE8D2C /* PBXContainerItemProxy */; }; A06FCA832004FD3200FE8D2C /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = A06FCA5D2004FD3200FE8D2C /* GBNoDataDemo */; targetProxy = A06FCA822004FD3200FE8D2C /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ A06FCA672004FD3200FE8D2C /* Main.storyboard */ = { isa = PBXVariantGroup; children = ( A06FCA682004FD3200FE8D2C /* Base */, ); name = Main.storyboard; sourceTree = ""; }; A06FCA6C2004FD3200FE8D2C /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( A06FCA6D2004FD3200FE8D2C /* Base */, ); name = LaunchScreen.storyboard; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ A06FCA882004FD3200FE8D2C /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 11.2; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; name = Debug; }; A06FCA892004FD3200FE8D2C /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 11.2; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; name = Release; }; A06FCA8B2004FD3200FE8D2C /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 4ACF912A1DF655079D419F98 /* Pods-GBNoDataDemo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = C2Y4NGKAHJ; INFOPLIST_FILE = GBNoDataDemo/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemo; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; A06FCA8C2004FD3200FE8D2C /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 4CED3D497882098841D468F3 /* Pods-GBNoDataDemo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = C2Y4NGKAHJ; INFOPLIST_FILE = GBNoDataDemo/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemo; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; A06FCA8E2004FD3200FE8D2C /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = C2Y4NGKAHJ; INFOPLIST_FILE = GBNoDataDemoTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemoTests; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GBNoDataDemo.app/GBNoDataDemo"; }; name = Debug; }; A06FCA8F2004FD3200FE8D2C /* Release */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = C2Y4NGKAHJ; INFOPLIST_FILE = GBNoDataDemoTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemoTests; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GBNoDataDemo.app/GBNoDataDemo"; }; name = Release; }; A06FCA912004FD3200FE8D2C /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = C2Y4NGKAHJ; INFOPLIST_FILE = GBNoDataDemoUITests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemoUITests; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; TEST_TARGET_NAME = GBNoDataDemo; }; name = Debug; }; A06FCA922004FD3200FE8D2C /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = C2Y4NGKAHJ; INFOPLIST_FILE = GBNoDataDemoUITests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.google.GBNoDataDemoUITests; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; TEST_TARGET_NAME = GBNoDataDemo; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ A06FCA592004FD3200FE8D2C /* Build configuration list for PBXProject "GBNoDataDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( A06FCA882004FD3200FE8D2C /* Debug */, A06FCA892004FD3200FE8D2C /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; A06FCA8A2004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( A06FCA8B2004FD3200FE8D2C /* Debug */, A06FCA8C2004FD3200FE8D2C /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; A06FCA8D2004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemoTests" */ = { isa = XCConfigurationList; buildConfigurations = ( A06FCA8E2004FD3200FE8D2C /* Debug */, A06FCA8F2004FD3200FE8D2C /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; A06FCA902004FD3200FE8D2C /* Build configuration list for PBXNativeTarget "GBNoDataDemoUITests" */ = { isa = XCConfigurationList; buildConfigurations = ( A06FCA912004FD3200FE8D2C /* Debug */, A06FCA922004FD3200FE8D2C /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = A06FCA562004FD3200FE8D2C /* Project object */; } ================================================ FILE: GBNoDataDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: GBNoDataDemo.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: GBNoDataDemoTests/GBNoDataDemoTests.m ================================================ // // GBNoDataDemoTests.m // GBNoDataDemoTests // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import @interface GBNoDataDemoTests : XCTestCase @end @implementation GBNoDataDemoTests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testExample { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } - (void)testPerformanceExample { // This is an example of a performance test case. [self measureBlock:^{ // Put the code you want to measure the time of here. }]; } @end ================================================ FILE: GBNoDataDemoTests/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType BNDL CFBundleShortVersionString 1.0 CFBundleVersion 1 ================================================ FILE: GBNoDataDemoUITests/GBNoDataDemoUITests.m ================================================ // // GBNoDataDemoUITests.m // GBNoDataDemoUITests // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import @interface GBNoDataDemoUITests : XCTestCase @end @implementation GBNoDataDemoUITests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. self.continueAfterFailure = NO; // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. [[[XCUIApplication alloc] init] launch]; // 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. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testExample { // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } @end ================================================ FILE: GBNoDataDemoUITests/Info.plist ================================================ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType BNDL CFBundleShortVersionString 1.0 CFBundleVersion 1 ================================================ FILE: Podfile ================================================ platform :ios, '8.0' source 'https://github.com/CocoaPods/Specs.git' target 'GBNoDataDemo' do pod 'GBNoData' end ================================================ FILE: Pods/GBNoData/GBNoData/Classes/GBRuntimeUtil.h ================================================ // // GBRuntimeUtil.h // GBNoDataView // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import #import @interface GBRuntimeUtil : NSObject + (void)swizzMethod:(Class)viewClass oriSel:(SEL)oriSel newSel:(SEL)newSel; @end ================================================ FILE: Pods/GBNoData/GBNoData/Classes/GBRuntimeUtil.m ================================================ // // GBRuntimeUtil.m // GBNoDataView // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import "GBRuntimeUtil.h" #import @implementation GBRuntimeUtil void swizzMethod(Class class, SEL oriSel, SEL newSel) { Method oriMethod = class_getInstanceMethod(class, oriSel); Method newMethod = class_getInstanceMethod(class, newSel); BOOL success = class_addMethod(class, oriSel, method_getImplementation(newMethod), method_getTypeEncoding(newMethod)); if (success) { class_replaceMethod(class, newSel, method_getImplementation(oriMethod), method_getTypeEncoding(oriMethod)); } else { method_exchangeImplementations(oriMethod, newMethod); } } + (void)swizzMethod:(Class)viewClass oriSel:(SEL)oriSel newSel:(SEL)newSel { swizzMethod(viewClass, oriSel, newSel); } @end ================================================ FILE: Pods/GBNoData/GBNoData/Classes/UICollectionView+NoData.h ================================================ // // UICollectionView+NoData.h // GBNoDataView // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import typedef void(^LoadDataCallBack)(UIView *view); @interface UICollectionView (NoData) //自定义无数据提示View @property (nonatomic, strong) UIView *customNoDataView; //Click回调 @property (nonatomic, copy) LoadDataCallBack callBack; @end ================================================ FILE: Pods/GBNoData/GBNoData/Classes/UICollectionView+NoData.m ================================================ // // UICollectionView+NoData.m // GBNoDataView // // Created by Lucas on 2018/1/9. // Copyright © 2018年 Lucas. All rights reserved. // #import "UICollectionView+NoData.h" #import #import "GBRuntimeUtil.h" @implementation UICollectionView (NoData) + (void)load { SEL selectors[] = { @selector(reloadData), @selector(insertSections:), @selector(deleteSections:), @selector(reloadSections:), }; for (NSUInteger index = 0; index < sizeof(selectors) / sizeof(SEL); ++index) { SEL originalSelector = selectors[index]; SEL swizzledSelector = NSSelectorFromString([@"gb_" stringByAppendingString:NSStringFromSelector(originalSelector)]); [GBRuntimeUtil swizzMethod:[self class] oriSel:originalSelector newSel:swizzledSelector]; } } - (void)gb_insertSections:(NSIndexSet *)sections{ [self gb_insertSections:sections]; [self showNoDataView]; } - (void)gb_deleteSections:(NSIndexSet *)sections { [self gb_deleteSections:sections]; [self showNoDataView]; } - (void)gb_reloadSections:(NSIndexSet *)sections { [self gb_reloadSections:sections]; [self showNoDataView]; } - (void)showNoDataView { if (self.showNoData) { NSInteger sectionCount = self.numberOfSections; NSInteger rowCount = 0; for (int i = 0; i < sectionCount; i++) { rowCount += [self.dataSource collectionView:self numberOfItemsInSection:i]; } if (rowCount == 0 && self.customNoDataView) { self.backgroundView = [self customNoDataView]; } else { self.backgroundView = [[UIView alloc] init]; } } } #pragma mark - setter && getter - (void)setShowNoData:(BOOL)showNoData { objc_setAssociatedObject(self, @selector(showNoData), @(showNoData), OBJC_ASSOCIATION_COPY_NONATOMIC); } - (BOOL)showNoData { return objc_getAssociatedObject(self, _cmd) == nil ? YES : [objc_getAssociatedObject(self, _cmd) boolValue]; } - (void)setCustomNoDataView:(UIView *)customNoDataView { self.showNoData = YES; objc_setAssociatedObject(self, @selector(customNoDataView), customNoDataView, OBJC_ASSOCIATION_RETAIN_NONATOMIC); } - (UIView *)customNoDataView { return objc_getAssociatedObject(self, _cmd); } - (void)setCallBack:(LoadDataCallBack)callBack { self.showNoData = YES; objc_setAssociatedObject(self, @selector(callBack), callBack, OBJC_ASSOCIATION_COPY_NONATOMIC); } - (void (^)(UIView *))callBack { return objc_getAssociatedObject(self, _cmd); } - (void)gb_tapDefalutNoDataView:(UITapGestureRecognizer *)tap { self.callBack ? self.callBack(self.customNoDataView) : nil; } @end ================================================ FILE: Pods/GBNoData/GBNoData/Classes/UITableView+NoData.h ================================================ // // UITableView+NoData.h // GBNoDataView // // Created by Lucas on 2018/1/8. // Copyright © 2018年 Lucas. All rights reserved. // #import typedef void(^LoadDataCallBack)(UIView *view); @interface UITableView (NoData) //自定义无数据提示View @property (nonatomic, strong) UIView *customNoDataView; //Click回调 @property (nonatomic, copy) LoadDataCallBack callBack; @end ================================================ FILE: Pods/GBNoData/GBNoData/Classes/UITableView+NoData.m ================================================ // // UITableView+NoData.m // GBNoDataView // // Created by Lucas on 2018/1/8. // Copyright © 2018年 Lucas. All rights reserved. // #import "UITableView+NoData.h" #import #import "GBRuntimeUtil.h" @implementation UITableView (NoData) + (void)load { SEL selectors[] = { @selector(reloadData), @selector(insertSections:withRowAnimation:), @selector(deleteSections:withRowAnimation:), @selector(reloadSections:withRowAnimation:), @selector(insertRowsAtIndexPaths:withRowAnimation:), @selector(deleteRowsAtIndexPaths:withRowAnimation:), @selector(reloadRowsAtIndexPaths:withRowAnimation:), }; for (NSUInteger index = 0; index < sizeof(selectors) / sizeof(SEL); ++index) { SEL originalSelector = selectors[index]; SEL swizzledSelector = NSSelectorFromString([@"gb_" stringByAppendingString:NSStringFromSelector(originalSelector)]); [GBRuntimeUtil swizzMethod:[self class] oriSel:originalSelector newSel:swizzledSelector]; } } - (void)gb_reloadData { [self gb_reloadData]; [self showNoDataView]; UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(gb_tapDefalutNoDataView:)]; [self.customNoDataView addGestureRecognizer:tap]; } - (void)gb_insertSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation { [self gb_insertSections:sections withRowAnimation:animation]; [self showNoDataView]; } - (void)gb_deleteSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation { [self gb_deleteSections:sections withRowAnimation:animation]; [self showNoDataView]; } - (void)gb_reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation { [self gb_reloadSections:sections withRowAnimation:animation]; [self showNoDataView]; } - (void)gb_insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation { [self gb_insertRowsAtIndexPaths:indexPaths withRowAnimation:animation]; [self showNoDataView]; } - (void)gb_deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation { [self gb_deleteRowsAtIndexPaths:indexPaths withRowAnimation:animation]; [self showNoDataView]; } - (void)gb_reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation { [self gb_reloadRowsAtIndexPaths:indexPaths withRowAnimation:animation]; [self showNoDataView]; } - (void)showNoDataView { if (self.showNoData) { NSInteger sectionCount = self.numberOfSections; NSInteger rowCount = 0; for (int i = 0; i < sectionCount; i++) { rowCount += [self.dataSource tableView:self numberOfRowsInSection:i]; } if (rowCount == 0 && self.customNoDataView) { self.backgroundView = [self customNoDataView]; } else { self.backgroundView = [[UIView alloc] init]; } } } #pragma mark - setter && getter - (void)setShowNoData:(BOOL)showNoData { objc_setAssociatedObject(self, @selector(showNoData), @(showNoData), OBJC_ASSOCIATION_COPY_NONATOMIC); } - (BOOL)showNoData { return objc_getAssociatedObject(self, _cmd) == nil ? YES : [objc_getAssociatedObject(self, _cmd) boolValue]; } - (void)setCustomNoDataView:(UIView *)customNoDataView { self.showNoData = YES; objc_setAssociatedObject(self, @selector(customNoDataView), customNoDataView, OBJC_ASSOCIATION_RETAIN_NONATOMIC); } - (UIView *)customNoDataView { return objc_getAssociatedObject(self, _cmd); } - (void)setCallBack:(LoadDataCallBack)callBack { self.showNoData = YES; objc_setAssociatedObject(self, @selector(callBack), callBack, OBJC_ASSOCIATION_COPY_NONATOMIC); } - (void (^)(UIView *))callBack { return objc_getAssociatedObject(self, _cmd); } - (void)gb_tapDefalutNoDataView:(UITapGestureRecognizer *)tap { self.callBack ? self.callBack(self.customNoDataView) : nil; } @end ================================================ FILE: Pods/GBNoData/LICENSE ================================================ Copyright (c) 2018 Lucas Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: Pods/GBNoData/README.md ================================================ # GBNoData ## Example To run the example project, clone the repo, and run `pod install` from the Example directory first. ## Requirements ## Installation GBNoData is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod "GBNoData" ``` ## Author Lucas, gaobo_it@163.com ## License GBNoData is available under the MIT license. See the LICENSE file for more info. ================================================ FILE: Pods/Pods.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 48; objects = { /* Begin PBXBuildFile section */ 04F329378E762A8D2D851AD48C8D37C8 /* UITableView+NoData.m in Sources */ = {isa = PBXBuildFile; fileRef = FA75EF47A96D869B6B11310D51006C6D /* UITableView+NoData.m */; }; 1A31FC24ABC2F558D9D3108C1EEECB1A /* Pods-GBNoDataDemo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = BCA255B5C225657B4D6C34DDE45B1F83 /* Pods-GBNoDataDemo-dummy.m */; }; 4DA718DF4BF1A79376E0F6AC458F47A0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 5E8510848F328C42A9CF2A1CE94636C8 /* UICollectionView+NoData.h in Headers */ = {isa = PBXBuildFile; fileRef = 3F4EC12E65072E9D673BF9AB15EC3E59 /* UICollectionView+NoData.h */; settings = {ATTRIBUTES = (Public, ); }; }; 5F21BAA399702210BE3A6374AE8CE2E7 /* GBNoData-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = CC265280F7C3838D54B7045B05CABD10 /* GBNoData-dummy.m */; }; 66119C514321F9B5427F8BC8B7354B1A /* UICollectionView+NoData.m in Sources */ = {isa = PBXBuildFile; fileRef = B274D9CCF527EBACB153DDF3A7A35A2B /* UICollectionView+NoData.m */; }; 684B62503B86148C884A399E4E9AE212 /* GBRuntimeUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 0B45457D9D414DAA766C1DDDEF734476 /* GBRuntimeUtil.m */; }; A4F4011E90FC3251F2830FB7A2743227 /* UITableView+NoData.h in Headers */ = {isa = PBXBuildFile; fileRef = 2E21A71D2F16667DF2347AFA71E412ED /* UITableView+NoData.h */; settings = {ATTRIBUTES = (Public, ); }; }; C4C1DC6995B4A79A3A978599B616C2C5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; EBAA60082B7A7797895F578402E30824 /* GBRuntimeUtil.h in Headers */ = {isa = PBXBuildFile; fileRef = BAF3F00E295B31D1CE3F653EF4226D40 /* GBRuntimeUtil.h */; settings = {ATTRIBUTES = (Public, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ 03CAE35EC2134934B604C28B7FFAEB83 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; proxyType = 1; remoteGlobalIDString = A086AB2D494FB87153F8A7BB1F5DDBAB; remoteInfo = GBNoData; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ 0B45457D9D414DAA766C1DDDEF734476 /* GBRuntimeUtil.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = GBRuntimeUtil.m; path = GBNoData/Classes/GBRuntimeUtil.m; sourceTree = ""; }; 14A158ECB5F0863538AF5D7576DF0A08 /* libGBNoData.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libGBNoData.a; path = libGBNoData.a; sourceTree = BUILT_PRODUCTS_DIR; }; 18012F23BF564C280CC54AA03C782936 /* libPods-GBNoDataDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-GBNoDataDemo.a"; path = "libPods-GBNoDataDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 2E21A71D2F16667DF2347AFA71E412ED /* UITableView+NoData.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UITableView+NoData.h"; path = "GBNoData/Classes/UITableView+NoData.h"; sourceTree = ""; }; 3F4EC12E65072E9D673BF9AB15EC3E59 /* UICollectionView+NoData.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "UICollectionView+NoData.h"; path = "GBNoData/Classes/UICollectionView+NoData.h"; sourceTree = ""; }; 46B669E28AA395753702A99C3ECFC480 /* Pods-GBNoDataDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GBNoDataDemo.release.xcconfig"; sourceTree = ""; }; 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; }; 7437E03A7B9C2106CD6D3DDB8702F748 /* Pods-GBNoDataDemo-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-GBNoDataDemo-acknowledgements.plist"; sourceTree = ""; }; 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; A6DCD6B467F995011247946A1D03D270 /* Pods-GBNoDataDemo-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GBNoDataDemo-resources.sh"; sourceTree = ""; }; AD975EE469F17333FBCD82D7DB8BD588 /* GBNoData.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = GBNoData.xcconfig; sourceTree = ""; }; B274D9CCF527EBACB153DDF3A7A35A2B /* UICollectionView+NoData.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UICollectionView+NoData.m"; path = "GBNoData/Classes/UICollectionView+NoData.m"; sourceTree = ""; }; B3838FC5B23F2F35614A3436D6857E32 /* GBNoData-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "GBNoData-prefix.pch"; sourceTree = ""; }; BAF3F00E295B31D1CE3F653EF4226D40 /* GBRuntimeUtil.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = GBRuntimeUtil.h; path = GBNoData/Classes/GBRuntimeUtil.h; sourceTree = ""; }; BCA255B5C225657B4D6C34DDE45B1F83 /* Pods-GBNoDataDemo-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-GBNoDataDemo-dummy.m"; sourceTree = ""; }; BD2D1A89E97DC7DEEC573D272D1FEEC9 /* Pods-GBNoDataDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GBNoDataDemo.debug.xcconfig"; sourceTree = ""; }; C0D5E4CEDA8C6365214B930F5E394466 /* Pods-GBNoDataDemo-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GBNoDataDemo-frameworks.sh"; sourceTree = ""; }; CC265280F7C3838D54B7045B05CABD10 /* GBNoData-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "GBNoData-dummy.m"; sourceTree = ""; }; D6EA38F50EA1465A507ABC8FAEA609CE /* Pods-GBNoDataDemo-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-GBNoDataDemo-acknowledgements.markdown"; sourceTree = ""; }; FA75EF47A96D869B6B11310D51006C6D /* UITableView+NoData.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "UITableView+NoData.m"; path = "GBNoData/Classes/UITableView+NoData.m"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ F0F2B8D23330418CD5DBB7CC113F93F5 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( C4C1DC6995B4A79A3A978599B616C2C5 /* Foundation.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; F6081A727F47AE926FB627966C2D005F /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 4DA718DF4BF1A79376E0F6AC458F47A0 /* Foundation.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 11F8E8527D8DD61380AEEC9D8E3E0955 /* Support Files */ = { isa = PBXGroup; children = ( AD975EE469F17333FBCD82D7DB8BD588 /* GBNoData.xcconfig */, CC265280F7C3838D54B7045B05CABD10 /* GBNoData-dummy.m */, B3838FC5B23F2F35614A3436D6857E32 /* GBNoData-prefix.pch */, ); name = "Support Files"; path = "../Target Support Files/GBNoData"; sourceTree = ""; }; 19956B91B777899118BCAACE0D97A19F /* GBNoData */ = { isa = PBXGroup; children = ( BAF3F00E295B31D1CE3F653EF4226D40 /* GBRuntimeUtil.h */, 0B45457D9D414DAA766C1DDDEF734476 /* GBRuntimeUtil.m */, 3F4EC12E65072E9D673BF9AB15EC3E59 /* UICollectionView+NoData.h */, B274D9CCF527EBACB153DDF3A7A35A2B /* UICollectionView+NoData.m */, 2E21A71D2F16667DF2347AFA71E412ED /* UITableView+NoData.h */, FA75EF47A96D869B6B11310D51006C6D /* UITableView+NoData.m */, 11F8E8527D8DD61380AEEC9D8E3E0955 /* Support Files */, ); name = GBNoData; path = GBNoData; sourceTree = ""; }; 7DB346D0F39D3F0E887471402A8071AB = { isa = PBXGroup; children = ( 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 936023202D8BA84DFDF6D9DAA8B92B2C /* Pods */, D27C0C0D6A8B563A4C098D74C2859650 /* Products */, DA92F5E3FB56C8D0733CB286EFF26EA0 /* Targets Support Files */, ); sourceTree = ""; }; 936023202D8BA84DFDF6D9DAA8B92B2C /* Pods */ = { isa = PBXGroup; children = ( 19956B91B777899118BCAACE0D97A19F /* GBNoData */, ); name = Pods; sourceTree = ""; }; B00FD48BE8C4DB0EA5D2F99BD0F75A9F /* Pods-GBNoDataDemo */ = { isa = PBXGroup; children = ( D6EA38F50EA1465A507ABC8FAEA609CE /* Pods-GBNoDataDemo-acknowledgements.markdown */, 7437E03A7B9C2106CD6D3DDB8702F748 /* Pods-GBNoDataDemo-acknowledgements.plist */, BCA255B5C225657B4D6C34DDE45B1F83 /* Pods-GBNoDataDemo-dummy.m */, C0D5E4CEDA8C6365214B930F5E394466 /* Pods-GBNoDataDemo-frameworks.sh */, A6DCD6B467F995011247946A1D03D270 /* Pods-GBNoDataDemo-resources.sh */, BD2D1A89E97DC7DEEC573D272D1FEEC9 /* Pods-GBNoDataDemo.debug.xcconfig */, 46B669E28AA395753702A99C3ECFC480 /* Pods-GBNoDataDemo.release.xcconfig */, ); name = "Pods-GBNoDataDemo"; path = "Target Support Files/Pods-GBNoDataDemo"; sourceTree = ""; }; BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { isa = PBXGroup; children = ( D35AF013A5F0BAD4F32504907A52519E /* iOS */, ); name = Frameworks; sourceTree = ""; }; D27C0C0D6A8B563A4C098D74C2859650 /* Products */ = { isa = PBXGroup; children = ( 14A158ECB5F0863538AF5D7576DF0A08 /* libGBNoData.a */, 18012F23BF564C280CC54AA03C782936 /* libPods-GBNoDataDemo.a */, ); name = Products; sourceTree = ""; }; D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { isa = PBXGroup; children = ( 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, ); name = iOS; sourceTree = ""; }; DA92F5E3FB56C8D0733CB286EFF26EA0 /* Targets Support Files */ = { isa = PBXGroup; children = ( B00FD48BE8C4DB0EA5D2F99BD0F75A9F /* Pods-GBNoDataDemo */, ); name = "Targets Support Files"; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ 05FAF654D0A674695A0DD26ACC5C4F60 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( EBAA60082B7A7797895F578402E30824 /* GBRuntimeUtil.h in Headers */, 5E8510848F328C42A9CF2A1CE94636C8 /* UICollectionView+NoData.h in Headers */, A4F4011E90FC3251F2830FB7A2743227 /* UITableView+NoData.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ A086AB2D494FB87153F8A7BB1F5DDBAB /* GBNoData */ = { isa = PBXNativeTarget; buildConfigurationList = F69F28562D7665EB1CAC70CF0E78BFA4 /* Build configuration list for PBXNativeTarget "GBNoData" */; buildPhases = ( B4D67315440BEDD3AA8C543C36F53D41 /* Sources */, F6081A727F47AE926FB627966C2D005F /* Frameworks */, 05FAF654D0A674695A0DD26ACC5C4F60 /* Headers */, ); buildRules = ( ); dependencies = ( ); name = GBNoData; productName = GBNoData; productReference = 14A158ECB5F0863538AF5D7576DF0A08 /* libGBNoData.a */; productType = "com.apple.product-type.library.static"; }; F3E7F95C719C33049DFA195E4404A8A2 /* Pods-GBNoDataDemo */ = { isa = PBXNativeTarget; buildConfigurationList = 3E9A36E3ED3DBD9204E74506D0A21193 /* Build configuration list for PBXNativeTarget "Pods-GBNoDataDemo" */; buildPhases = ( 8C21D5233DFB41CB7070D97AE1F62A24 /* Sources */, F0F2B8D23330418CD5DBB7CC113F93F5 /* Frameworks */, ); buildRules = ( ); dependencies = ( 2893AD800AD63815BE461C4F0A9C82EE /* PBXTargetDependency */, ); name = "Pods-GBNoDataDemo"; productName = "Pods-GBNoDataDemo"; productReference = 18012F23BF564C280CC54AA03C782936 /* libPods-GBNoDataDemo.a */; productType = "com.apple.product-type.library.static"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0830; LastUpgradeCheck = 0700; }; buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( en, ); mainGroup = 7DB346D0F39D3F0E887471402A8071AB; productRefGroup = D27C0C0D6A8B563A4C098D74C2859650 /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( A086AB2D494FB87153F8A7BB1F5DDBAB /* GBNoData */, F3E7F95C719C33049DFA195E4404A8A2 /* Pods-GBNoDataDemo */, ); }; /* End PBXProject section */ /* Begin PBXSourcesBuildPhase section */ 8C21D5233DFB41CB7070D97AE1F62A24 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 1A31FC24ABC2F558D9D3108C1EEECB1A /* Pods-GBNoDataDemo-dummy.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; B4D67315440BEDD3AA8C543C36F53D41 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 5F21BAA399702210BE3A6374AE8CE2E7 /* GBNoData-dummy.m in Sources */, 684B62503B86148C884A399E4E9AE212 /* GBRuntimeUtil.m in Sources */, 66119C514321F9B5427F8BC8B7354B1A /* UICollectionView+NoData.m in Sources */, 04F329378E762A8D2D851AD48C8D37C8 /* UITableView+NoData.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ 2893AD800AD63815BE461C4F0A9C82EE /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = GBNoData; target = A086AB2D494FB87153F8A7BB1F5DDBAB /* GBNoData */; targetProxy = 03CAE35EC2134934B604C28B7FFAEB83 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ 18A15F48D80979EB157DC3C7702B2431 /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = BD2D1A89E97DC7DEEC573D272D1FEEC9 /* Pods-GBNoDataDemo.debug.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MACH_O_TYPE = staticlib; MTL_ENABLE_DEBUG_INFO = YES; OTHER_LDFLAGS = ""; OTHER_LIBTOOLFLAGS = ""; PODS_ROOT = "$(SRCROOT)"; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SKIP_INSTALL = YES; }; name = Debug; }; 1C7D17A37D091C98D2F0DD886C3A9320 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGNING_REQUIRED = NO; COPY_PHASE_STRIP = NO; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "POD_CONFIGURATION_DEBUG=1", "DEBUG=1", "$(inherited)", ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; ONLY_ACTIVE_ARCH = YES; PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; STRIP_INSTALLED_PRODUCT = NO; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SYMROOT = "${SRCROOT}/../build"; }; name = Debug; }; 2638CA56063D74C6FB5C2738E1B9FD6A /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = AD975EE469F17333FBCD82D7DB8BD588 /* GBNoData.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; GCC_PREFIX_HEADER = "Target Support Files/GBNoData/GBNoData-prefix.pch"; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; OTHER_LDFLAGS = ""; OTHER_LIBTOOLFLAGS = ""; PRIVATE_HEADERS_FOLDER_PATH = ""; PRODUCT_NAME = "$(TARGET_NAME)"; PUBLIC_HEADERS_FOLDER_PATH = ""; SDKROOT = iphoneos; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; }; name = Release; }; 34FE9531DA9AF2820790339988D5FF41 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGNING_REQUIRED = NO; COPY_PHASE_STRIP = YES; ENABLE_NS_ASSERTIONS = NO; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_PREPROCESSOR_DEFINITIONS = ( "POD_CONFIGURATION_RELEASE=1", "$(inherited)", ); GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; STRIP_INSTALLED_PRODUCT = NO; SYMROOT = "${SRCROOT}/../build"; VALIDATE_PRODUCT = YES; }; name = Release; }; 8534C30286AEF7E84E3A9927C9C7C11F /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = AD975EE469F17333FBCD82D7DB8BD588 /* GBNoData.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; GCC_PREFIX_HEADER = "Target Support Files/GBNoData/GBNoData-prefix.pch"; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = YES; OTHER_LDFLAGS = ""; OTHER_LIBTOOLFLAGS = ""; PRIVATE_HEADERS_FOLDER_PATH = ""; PRODUCT_NAME = "$(TARGET_NAME)"; PUBLIC_HEADERS_FOLDER_PATH = ""; SDKROOT = iphoneos; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; }; name = Debug; }; AE939269D4AC3DE61CBE80202C78985E /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 46B669E28AA395753702A99C3ECFC480 /* Pods-GBNoDataDemo.release.xcconfig */; buildSettings = { "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MACH_O_TYPE = staticlib; MTL_ENABLE_DEBUG_INFO = NO; OTHER_LDFLAGS = ""; OTHER_LIBTOOLFLAGS = ""; PODS_ROOT = "$(SRCROOT)"; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SKIP_INSTALL = YES; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { isa = XCConfigurationList; buildConfigurations = ( 1C7D17A37D091C98D2F0DD886C3A9320 /* Debug */, 34FE9531DA9AF2820790339988D5FF41 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 3E9A36E3ED3DBD9204E74506D0A21193 /* Build configuration list for PBXNativeTarget "Pods-GBNoDataDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( 18A15F48D80979EB157DC3C7702B2431 /* Debug */, AE939269D4AC3DE61CBE80202C78985E /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; F69F28562D7665EB1CAC70CF0E78BFA4 /* Build configuration list for PBXNativeTarget "GBNoData" */ = { isa = XCConfigurationList; buildConfigurations = ( 8534C30286AEF7E84E3A9927C9C7C11F /* Debug */, 2638CA56063D74C6FB5C2738E1B9FD6A /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; } ================================================ FILE: Pods/Target Support Files/GBNoData/GBNoData-dummy.m ================================================ #import @interface PodsDummy_GBNoData : NSObject @end @implementation PodsDummy_GBNoData @end ================================================ FILE: Pods/Target Support Files/GBNoData/GBNoData-prefix.pch ================================================ #ifdef __OBJC__ #import #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif ================================================ FILE: Pods/Target Support Files/GBNoData/GBNoData.xcconfig ================================================ CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/GBNoData GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/GBNoData" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GBNoData" PODS_BUILD_DIR = $BUILD_DIR PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_ROOT = ${SRCROOT} PODS_TARGET_SRCROOT = ${PODS_ROOT}/GBNoData PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} SKIP_INSTALL = YES ================================================ FILE: Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-acknowledgements.markdown ================================================ # Acknowledgements This application makes use of the following third party libraries: ## GBNoData Copyright (c) 2018 Lucas Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Generated by CocoaPods - https://cocoapods.org ================================================ FILE: Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-acknowledgements.plist ================================================ PreferenceSpecifiers FooterText This application makes use of the following third party libraries: Title Acknowledgements Type PSGroupSpecifier FooterText Copyright (c) 2018 Lucas <gaobo@funtsui.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License MIT Title GBNoData Type PSGroupSpecifier FooterText Generated by CocoaPods - https://cocoapods.org Title Type PSGroupSpecifier StringsTable Acknowledgements Title Acknowledgements ================================================ FILE: Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-dummy.m ================================================ #import @interface PodsDummy_Pods_GBNoDataDemo : NSObject @end @implementation PodsDummy_Pods_GBNoDataDemo @end ================================================ FILE: Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-frameworks.sh ================================================ #!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" # This protects against multiple targets copying the same framework dependency at the same time. The solution # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRODUCTS_DIR}/$1" elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" elif [ -r "$1" ]; then local source="$1" fi local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" if [ -L "${source}" ]; then echo "Symlinked..." source="$(readlink "${source}")" fi # Use filter instead of exclude so missing patterns don't throw errors. echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" local basename basename="$(basename -s .framework "$1")" binary="${destination}/${basename}.framework/${basename}" if ! [ -r "$binary" ]; then binary="${destination}/${basename}" fi # Strip invalid architectures so "fat" simulator / device frameworks work on device if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then strip_invalid_archs "$binary" fi # Resign the code if required by the build settings to avoid unstable apps code_sign_if_enabled "${destination}/$(basename "$1")" # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then local swift_runtime_libs swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) for lib in $swift_runtime_libs; do echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" code_sign_if_enabled "${destination}/${lib}" done fi } # Copies the dSYM of a vendored framework install_dsym() { local source="$1" if [ -r "$source" ]; then 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}\"" 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}" fi } # Signs a framework with the provided identity code_sign_if_enabled() { if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then # Use the current code_sign_identitiy echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then code_sign_cmd="$code_sign_cmd &" fi echo "$code_sign_cmd" eval "$code_sign_cmd" fi } # Strip invalid architectures strip_invalid_archs() { binary="$1" # Get architectures for current file archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" stripped="" for arch in $archs; do if ! [[ "${ARCHS}" == *"$arch"* ]]; then # Strip non-valid architectures in-place lipo -remove "$arch" -output "$binary" "$binary" || exit 1 stripped="$stripped $arch" fi done if [[ "$stripped" ]]; then echo "Stripped $binary of architectures:$stripped" fi } if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then wait fi ================================================ FILE: Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo-resources.sh ================================================ #!/bin/sh set -e mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt > "$RESOURCES_TO_COPY" XCASSET_FILES=() # This protects against multiple targets copying the same framework dependency at the same time. The solution # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") case "${TARGETED_DEVICE_FAMILY}" in 1,2) TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" ;; 1) TARGET_DEVICE_ARGS="--target-device iphone" ;; 2) TARGET_DEVICE_ARGS="--target-device ipad" ;; 3) TARGET_DEVICE_ARGS="--target-device tv" ;; 4) TARGET_DEVICE_ARGS="--target-device watch" ;; *) TARGET_DEVICE_ARGS="--target-device mac" ;; esac install_resource() { if [[ "$1" = /* ]] ; then RESOURCE_PATH="$1" else RESOURCE_PATH="${PODS_ROOT}/$1" fi if [[ ! -e "$RESOURCE_PATH" ]] ; then cat << EOM error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. EOM exit 1 fi case $RESOURCE_PATH in *.storyboard) 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 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} ;; *.xib) 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 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} ;; *.framework) echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" ;; *.xcdatamodel) echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" ;; *.xcdatamodeld) echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" ;; *.xcmappingmodel) echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" ;; *.xcassets) ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") ;; *) echo "$RESOURCE_PATH" || true echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" ;; esac } mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" fi rm -f "$RESOURCES_TO_COPY" if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] then # Find all other xcassets (this unfortunately includes those of path pods and other targets). OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) while read line; do if [[ $line != "${PODS_ROOT}*" ]]; then XCASSET_FILES+=("$line") fi done <<<"$OTHER_XCASSETS" 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}" fi ================================================ FILE: Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo.debug.xcconfig ================================================ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GBNoData" LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/GBNoData" OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GBNoData" OTHER_LDFLAGS = $(inherited) -ObjC -l"GBNoData" PODS_BUILD_DIR = $BUILD_DIR PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_ROOT = ${SRCROOT}/Pods ================================================ FILE: Pods/Target Support Files/Pods-GBNoDataDemo/Pods-GBNoDataDemo.release.xcconfig ================================================ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GBNoData" LIBRARY_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/GBNoData" OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GBNoData" OTHER_LDFLAGS = $(inherited) -ObjC -l"GBNoData" PODS_BUILD_DIR = $BUILD_DIR PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_ROOT = ${SRCROOT}/Pods ================================================ FILE: README.md ================================================ # GBNoData ## Example To run the example project, clone the repo, and run `pod install` from the Example directory first. ## Code ```Objective-C UIView *view = [[UIView alloc] initWithFrame:self.view.bounds]; view.backgroundColor = [UIColor yellowColor]; self.tableView.customNoDataView = view; __weak typeof(self) weakSelf = self; self.tableView.callBack = ^(UIView *view) { [weakSelf.tableView reloadData]; }; ``` ## Installation GBNoData is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod "GBNoData" ``` ## Author Lucas, gaobo_it@163.com ## License GBNoData is available under the MIT license. See the LICENSE file for more info.