Commit 847a7988e18eaf65572912c9fb8d65940a762498

Authored by 张旭
1 parent b0482601

no message

CNLiveBaseClass/Classes/Controller/CNLiveBaseViewController.m
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 - (void)createSubViews{ 33 - (void)createSubViews{
34 [self.view addSubview:self.navigationBar]; 34 [self.view addSubview:self.navigationBar];
35 } 35 }
36 - 36 +
37 #pragma mark - Setter方法 37 #pragma mark - Setter方法
38 - (void)setTitle:(NSString *)title{ 38 - (void)setTitle:(NSString *)title{
39 [super setTitle:title]; 39 [super setTitle:title];
Example/CNLiveBaseClass.xcodeproj/project.pbxproj
@@ -247,6 +247,9 @@ @@ -247,6 +247,9 @@
247 LastUpgradeCheck = 0720; 247 LastUpgradeCheck = 0720;
248 ORGANIZATIONNAME = "153993236@qq.com"; 248 ORGANIZATIONNAME = "153993236@qq.com";
249 TargetAttributes = { 249 TargetAttributes = {
  250 + 6003F589195388D20070C39A = {
  251 + DevelopmentTeam = 94X49GG3ZW;
  252 + };
250 6003F5AD195388D20070C39A = { 253 6003F5AD195388D20070C39A = {
251 TestTargetID = 6003F589195388D20070C39A; 254 TestTargetID = 6003F589195388D20070C39A;
252 }; 255 };
@@ -506,6 +509,7 @@ @@ -506,6 +509,7 @@
506 baseConfigurationReference = C311BFEF92D4EA0D0F4D1A52 /* Pods-CNLiveBaseClass_Example.debug.xcconfig */; 509 baseConfigurationReference = C311BFEF92D4EA0D0F4D1A52 /* Pods-CNLiveBaseClass_Example.debug.xcconfig */;
507 buildSettings = { 510 buildSettings = {
508 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 511 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  512 + DEVELOPMENT_TEAM = 94X49GG3ZW;
509 GCC_PRECOMPILE_PREFIX_HEADER = YES; 513 GCC_PRECOMPILE_PREFIX_HEADER = YES;
510 GCC_PREFIX_HEADER = "CNLiveBaseClass/CNLiveBaseClass-Prefix.pch"; 514 GCC_PREFIX_HEADER = "CNLiveBaseClass/CNLiveBaseClass-Prefix.pch";
511 INFOPLIST_FILE = "CNLiveBaseClass/CNLiveBaseClass-Info.plist"; 515 INFOPLIST_FILE = "CNLiveBaseClass/CNLiveBaseClass-Info.plist";
@@ -522,6 +526,7 @@ @@ -522,6 +526,7 @@
522 baseConfigurationReference = 6D2B9ED659B6302233C61263 /* Pods-CNLiveBaseClass_Example.release.xcconfig */; 526 baseConfigurationReference = 6D2B9ED659B6302233C61263 /* Pods-CNLiveBaseClass_Example.release.xcconfig */;
523 buildSettings = { 527 buildSettings = {
524 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 528 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  529 + DEVELOPMENT_TEAM = 94X49GG3ZW;
525 GCC_PRECOMPILE_PREFIX_HEADER = YES; 530 GCC_PRECOMPILE_PREFIX_HEADER = YES;
526 GCC_PREFIX_HEADER = "CNLiveBaseClass/CNLiveBaseClass-Prefix.pch"; 531 GCC_PREFIX_HEADER = "CNLiveBaseClass/CNLiveBaseClass-Prefix.pch";
527 INFOPLIST_FILE = "CNLiveBaseClass/CNLiveBaseClass-Info.plist"; 532 INFOPLIST_FILE = "CNLiveBaseClass/CNLiveBaseClass-Info.plist";
Example/CNLiveBaseClass/CNLIVEAppDelegate.m
@@ -7,12 +7,23 @@ @@ -7,12 +7,23 @@
7 // 7 //
8 8
9 #import "CNLIVEAppDelegate.h" 9 #import "CNLIVEAppDelegate.h"
10 - 10 +#import "CNLIVEViewController.h"
  11 +#import <CNLiveBaseClass/CNLiveTabBarController.h>
11 @implementation CNLIVEAppDelegate 12 @implementation CNLIVEAppDelegate
12 13
13 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14 { 15 {
15 // Override point for customization after application launch. 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 return YES; 27 return YES;
17 } 28 }
18 29
Example/CNLiveBaseClass/CNLIVEViewController.m
@@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
18 { 18 {
19 [super viewDidLoad]; 19 [super viewDidLoad];
20 // Do any additional setup after loading the view, typically from a nib. 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 - (void)didReceiveMemoryWarning 25 - (void)didReceiveMemoryWarning