Commit 847a7988e18eaf65572912c9fb8d65940a762498
1 parent
b0482601
no message
Showing
4 changed files
with
20 additions
and
2 deletions
CNLiveBaseClass/Classes/Controller/CNLiveBaseViewController.m
Example/CNLiveBaseClass.xcodeproj/project.pbxproj
| ... | ... | @@ -247,6 +247,9 @@ |
| 247 | 247 | LastUpgradeCheck = 0720; |
| 248 | 248 | ORGANIZATIONNAME = "153993236@qq.com"; |
| 249 | 249 | TargetAttributes = { |
| 250 | + 6003F589195388D20070C39A = { | |
| 251 | + DevelopmentTeam = 94X49GG3ZW; | |
| 252 | + }; | |
| 250 | 253 | 6003F5AD195388D20070C39A = { |
| 251 | 254 | TestTargetID = 6003F589195388D20070C39A; |
| 252 | 255 | }; |
| ... | ... | @@ -506,6 +509,7 @@ |
| 506 | 509 | baseConfigurationReference = C311BFEF92D4EA0D0F4D1A52 /* Pods-CNLiveBaseClass_Example.debug.xcconfig */; |
| 507 | 510 | buildSettings = { |
| 508 | 511 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 512 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 509 | 513 | GCC_PRECOMPILE_PREFIX_HEADER = YES; |
| 510 | 514 | GCC_PREFIX_HEADER = "CNLiveBaseClass/CNLiveBaseClass-Prefix.pch"; |
| 511 | 515 | INFOPLIST_FILE = "CNLiveBaseClass/CNLiveBaseClass-Info.plist"; |
| ... | ... | @@ -522,6 +526,7 @@ |
| 522 | 526 | baseConfigurationReference = 6D2B9ED659B6302233C61263 /* Pods-CNLiveBaseClass_Example.release.xcconfig */; |
| 523 | 527 | buildSettings = { |
| 524 | 528 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 529 | + DEVELOPMENT_TEAM = 94X49GG3ZW; | |
| 525 | 530 | GCC_PRECOMPILE_PREFIX_HEADER = YES; |
| 526 | 531 | GCC_PREFIX_HEADER = "CNLiveBaseClass/CNLiveBaseClass-Prefix.pch"; |
| 527 | 532 | INFOPLIST_FILE = "CNLiveBaseClass/CNLiveBaseClass-Info.plist"; | ... | ... |
Example/CNLiveBaseClass/CNLIVEAppDelegate.m
| ... | ... | @@ -7,12 +7,23 @@ |
| 7 | 7 | // |
| 8 | 8 | |
| 9 | 9 | #import "CNLIVEAppDelegate.h" |
| 10 | - | |
| 10 | +#import "CNLIVEViewController.h" | |
| 11 | +#import <CNLiveBaseClass/CNLiveTabBarController.h> | |
| 11 | 12 | @implementation CNLIVEAppDelegate |
| 12 | 13 | |
| 13 | 14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions |
| 14 | 15 | { |
| 15 | 16 | // Override point for customization after application launch. |
| 17 | + CNLIVEViewController *vc = [[CNLIVEViewController alloc] init]; | |
| 18 | + UINavigationController *navCtrl = [[UINavigationController alloc] initWithRootViewController:vc]; | |
| 19 | + UITabBarItem *serviceTabBarItem = [[UITabBarItem alloc] initWithTitle:@"服务中心" image:[UIImage imageNamed:@""] tag:0]; | |
| 20 | + navCtrl.tabBarItem = serviceTabBarItem; | |
| 21 | + | |
| 22 | + CNLiveTabBarController *tabVC = [[CNLiveTabBarController alloc] init]; | |
| 23 | + tabVC.viewControllers = @[navCtrl]; | |
| 24 | + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; | |
| 25 | + self.window.rootViewController = tabVC; | |
| 26 | + [self.window makeKeyAndVisible]; | |
| 16 | 27 | return YES; |
| 17 | 28 | } |
| 18 | 29 | ... | ... |
Example/CNLiveBaseClass/CNLIVEViewController.m
| ... | ... | @@ -18,6 +18,8 @@ |
| 18 | 18 | { |
| 19 | 19 | [super viewDidLoad]; |
| 20 | 20 | // Do any additional setup after loading the view, typically from a nib. |
| 21 | + self.view.backgroundColor = [UIColor cyanColor]; | |
| 22 | + [self.navigationController.navigationBar setHidden:YES]; | |
| 21 | 23 | } |
| 22 | 24 | |
| 23 | 25 | - (void)didReceiveMemoryWarning | ... | ... |