BuWanVideo2.0.xcodeproj/project.pbxproj
@@ -3263,7 +3263,7 @@ CODE_SIGN_ENTITLEMENTS = BuWanVideo2.0/BuWanVideo2.0.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 100; CURRENT_PROJECT_VERSION = 101; DEVELOPMENT_TEAM = 98HSDT7AP4; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( @@ -3325,7 +3325,7 @@ "$(PROJECT_DIR)/BuWanVideo2.0/DKADSet_iOS_SDK_1.2.0_iphoneOS", "$(PROJECT_DIR)/BuWanVideo2.0/GDT_iOS_SDK", ); MARKETING_VERSION = 3.1.11; MARKETING_VERSION = 3.1.12; ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( "$(inherited)", @@ -3414,7 +3414,7 @@ CODE_SIGN_ENTITLEMENTS = BuWanVideo2.0/BuWanVideo2.0.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 100; CURRENT_PROJECT_VERSION = 101; DEVELOPMENT_TEAM = 98HSDT7AP4; ENABLE_BITCODE = NO; FRAMEWORK_SEARCH_PATHS = ( @@ -3476,7 +3476,7 @@ "$(PROJECT_DIR)/BuWanVideo2.0/DKADSet_iOS_SDK_1.2.0_iphoneOS", "$(PROJECT_DIR)/BuWanVideo2.0/GDT_iOS_SDK", ); MARKETING_VERSION = 3.1.11; MARKETING_VERSION = 3.1.12; ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ( "$(inherited)", BuWanVideo2.0/AppDelegate.m
@@ -68,6 +68,7 @@ @property (strong, nonatomic) UIView *bottomView; @property (nonatomic, strong) UIView *viewBot; @property bool isFirstIn; @property bool statusBarVisiable; @end @implementation AppDelegate @@ -83,6 +84,7 @@ [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; } _inited=false; _statusBarVisiable = YES; TOCK; return YES; } @@ -160,27 +162,12 @@ CGFloat viewHeight = 0.0; if (width == 320.0f && height<=480.0f) { // iphone4 iphone4s 上的default图片 _gdtSplash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"320x480"]]; //imageview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"320"]]; viewHeight = 55; }else if (width ==320.0f && height==568.0f) { // iphone5 上的default图片 _gdtSplash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"320x568"]]; //imageview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"320"]]; viewHeight = 55; } else if (width ==375.0f) { // iphone6 上的default图片 _gdtSplash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"375x667"]]; //imageview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"375"]]; viewHeight = 63; }else{ // iphone6 plus 上的default图片 _gdtSplash.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"414x736"]]; //imageview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"414"]]; viewHeight = 69; } if (KIsiPhoneX) { @@ -194,6 +181,7 @@ _bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, screenH - 100, KScreenW, 100)]; _bottomView.backgroundColor = [UIColor whiteColor]; _bottomView.tag = 1111; imageview.frame = CGRectMake(0, 21.5, _bottomView.frame.size.width, 57); [_bottomView addSubview:imageview]; @@ -383,6 +371,7 @@ } } } _statusBarVisiable = ![[UIApplication sharedApplication] isStatusBarHidden]; //状态栏重现 [[UIApplication sharedApplication] setStatusBarHidden:NO]; [LCDManager stopOpenGLESActivity]; @@ -396,6 +385,12 @@ - (void)applicationWillEnterForeground:(UIApplication *)application { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. if(_statusBarVisiable) { [[UIApplication sharedApplication] setStatusBarHidden:NO]; }else{ [[UIApplication sharedApplication] setStatusBarHidden:YES]; } } - (void)applicationDidBecomeActive:(UIApplication *)application { @@ -412,9 +407,16 @@ [LCDManager startOpenGLESActivity]; //状态栏重现 [[UIApplication sharedApplication] setStatusBarHidden:NO]; // [GDTTrack activateApp]; if(_statusBarVisiable) { [[UIApplication sharedApplication] setStatusBarHidden:NO]; }else{ [[UIApplication sharedApplication] setStatusBarHidden:YES]; } // [GDTTrack activateApp]; } - (void)applicationWillTerminate:(UIApplication *)application { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. @@ -497,7 +499,8 @@ // [BUAdSDKManager set :NO]; // splash AD demo [self addCSJSplashAD]; [self loadCSJSplashAD]; // [self loadGDTAd]; } - (void) initCSJAd:(BUCompletionHandler)completionHandler{ @@ -560,26 +563,18 @@ CGFloat viewHeight = 0.0; if (width == 320.0f && height<=480.0f) { // iphone4 iphone4s 上的default图片 _gdtSplash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"320x480"]]; //imageview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"320"]]; viewHeight = 55; }else if (width ==320.0f && height==568.0f) { // iphone5 上的default图片 _gdtSplash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"320x568"]]; //imageview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"320"]]; viewHeight = 55; } else if (width ==375.0f) { // iphone6 上的default图片 _gdtSplash.backgroundColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"375x667"]]; //imageview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"375"]]; viewHeight = 63; }else{ // iphone6 plus 上的default图片 _gdtSplash.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"414x736"]]; //imageview.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"414"]]; viewHeight = 69; } if (KIsiPhoneX) { @@ -593,6 +588,15 @@ CGFloat screenH = [[UIScreen mainScreen] bounds].size.height; //self.splashAdView.frame = CGRectMake(0, 0, KScreenW, screenH - viewHeight); UIView *bottom =[[UIApplication sharedApplication].keyWindow viewWithTag:1111]; if(bottom){ [bottom removeFromSuperview]; } if(self.bottomView){ self.bottomView.hidden = YES; [self.bottomView removeFromSuperview]; self.bottomView = nil; } _bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, screenH - 100, KScreenW, 100)]; _bottomView.backgroundColor = [UIColor whiteColor]; @@ -604,7 +608,8 @@ } #pragma mark - Splash - (void)addCSJSplashAD { - (void)loadCSJSplashAD { NSLog(@"广告-加载穿山甲广告"); CGRect frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height - 100); self.csjSplashAd = [[BUSplashAd alloc] initWithSlotID:@"102509668" adSize:CGSizeMake(frame.size.width, frame.size.height)]; //self.splashAd.tolerateTimeout = 10; @@ -615,6 +620,7 @@ - (void)loadGDTAd { NSLog(@"广告-加载广点通广告"); BOOL res = [GDTSDKConfig registerAppId:GDTADkey]; if (res) { @@ -659,15 +665,24 @@ // [_splash loadAdAndShowInWindow:self.window];//拉起并展示全屏广告 // [_splash loadAdAndShowInWindow:self.window withBottomView:[UIView new]]; _bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, KScreenH - viewHeight, KScreenW, viewHeight)]; UIView *bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, KScreenH - viewHeight, KScreenW, viewHeight)]; imageview.frame = CGRectMake(0, 12, _bottomView.frame.size.width, _bottomView.frame.size.height - 6); [_bottomView addSubview:imageview]; _bottomView.backgroundColor = [UIColor whiteColor]; [bottomView addSubview:imageview]; bottomView.backgroundColor = [UIColor whiteColor]; UIView *loadView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, width, viewHeight)]; loadView.backgroundColor = [UIColor clearColor]; [_gdtSplash loadAdAndShowInWindow:self.window withBottomView:loadView]; [self.window addSubview:self.bottomView]; if(_bottomView!=nil){ _bottomView.hidden = YES; [_bottomView removeFromSuperview]; _bottomView = nil; } self.bottomView = bottomView; // [self.window addSubview:self.bottomView]; [_gdtSplash loadAd]; } #pragma mark 信鸽推送 @@ -829,6 +844,24 @@ } } - (void) hiddenSplash{ UIView *bottom =[[UIApplication sharedApplication].keyWindow viewWithTag:1111]; if(bottom){ [bottom removeFromSuperview]; } if(self.viewBot){ [self.viewBot removeFromSuperview]; self.viewBot = nil; } if(self.bottomView){ self.bottomView.hidden = YES; [self.bottomView removeFromSuperview]; self.bottomView = nil; } } #pragma mark BUSplashAdDelegate //- (void)splashAdDidLoad:(BUSplashAdView *)splashAd { // if (splashAd.zoomOutView) { @@ -844,47 +877,44 @@ ///新版本回调 /// - (void)splashAdLoadFail:(BUSplashAd *)splashAd error:(BUAdError *)error{ if(self.viewBot){ [self.viewBot removeFromSuperview]; self.viewBot = nil; } if(self.bottomView){ [self.bottomView removeFromSuperview]; self.bottomView = nil; // NSLog(@"广告-加载穿山甲广告失败 %@",error.description); UIView *bottom =[[UIApplication sharedApplication].keyWindow viewWithTag:1111]; if(bottom){ [bottom removeFromSuperview]; } [self pbu_logWithSEL:_cmd msg:@""]; [self loadGDTAd]; } - (void)splashAdLoadSuccess:(BUSplashAd *)splashAd{ // NSLog(@"广告-加载穿山甲广告成功"); NSLog(@"splashAdLoadSuccess"); [splashAd showSplashViewInRootViewController:self.window.rootViewController]; } - (void)splashAdRenderSuccess:(BUSplashAd *)splashAd{ [self pbu_logWithSEL:_cmd msg:@""]; //NSLog(@"广告-穿山甲广告渲染成功"); } - (void)splashAdDidClose:(nonnull BUSplashAd *)splashAd closeType:(BUSplashAdCloseType)closeType { if(self.viewBot){ [self.viewBot removeFromSuperview]; self.viewBot = nil; } if(self.bottomView){ [self.bottomView removeFromSuperview]; self.bottomView = nil; } // NSLog(@"广告-穿山甲广告关闭"); [self hiddenSplash]; [self pbu_logWithSEL:_cmd msg:@""]; [self splashDisappear]; } - (void)splashAdDidShow:(nonnull BUSplashAd *)splashAd { //NSLog(@"广告-穿山甲广告展示"); [self pbu_logWithSEL:_cmd msg:@""]; [self hiddenSplash]; } - (void)splashAdViewControllerDidClose:(nonnull BUSplashAd *)splashAd { [self pbu_logWithSEL:_cmd msg:@""]; //NSLog(@"广告-穿山甲广告-splashAdViewControllerDidClose"); } @@ -896,6 +926,7 @@ - (void)splashDidCloseOtherController:(nonnull BUSplashAd *)splashAd interactionType:(BUInteractionType)interactionType { [splashAd.mediation destoryAd]; [self pbu_logWithSEL:_cmd msg:@""]; //NSLog(@"广告-穿山甲广告-splashDidCloseOtherController"); } @@ -910,16 +941,21 @@ #pragma mark -GDTSplashAdDelegate - (void)splashAdDidLoad:(GDTSplashAd *)splashAd{ //NSLog(@"广告-广电通广告加载成功"); [splashAd showAdInWindow:self.window withBottomView:self.bottomView skipView:nil]; } -(void)splashAdSuccessPresentScreen:(GDTSplashAd *)splashAd { NSLog(@"%s",__FUNCTION__); //NSLog(@"广告-广电通广告展示"); } -(void)splashAdFailToPresent:(GDTSplashAd *)splashAd withError:(NSError *)error { self.bottomView.hidden = YES; [self.bottomView removeFromSuperview]; NSLog(@"%s%@",__FUNCTION__,error); // NSLog(@"广告-广电通广告失败:%@", error.description); [self hiddenSplash]; [self splashDisappear]; } @@ -937,18 +973,17 @@ -(void)splashAdWillClosed:(GDTSplashAd *)splashAd { self.bottomView.hidden = YES; [self.bottomView removeFromSuperview]; [self hiddenSplash]; NSLog(@"%s",__FUNCTION__); } -(void)splashAdClosed:(GDTSplashAd *)splashAd { // NSLog(@"广告-广电通广告关闭"); NSLog(@"splash-ad gdt close"); NSLog(@"%s",__FUNCTION__); self.bottomView.hidden = YES; [self.bottomView removeFromSuperview]; _gdtSplash = nil; [self hiddenSplash]; [self splashDisappear]; } @@ -972,7 +1007,6 @@ } -(void)splashAdDidDismissFullScreenModal:(GDTSplashAd *)splashAd { NSLog(@"%s",__FUNCTION__); } BuWanVideo2.0/CollectionController.m
@@ -85,6 +85,7 @@ -(void)createNavgationBar{ self.navigationItem.title = @"我的收藏"; self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor blackColor],NSFontAttributeName:[UIFont systemFontOfSize:18]}; self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; //返回按钮 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; @@ -458,6 +459,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ NoteCell * cell = [tableView dequeueReusableCellWithIdentifier:@"NoteCell"]; cell.backgroundColor = kGlobalBackgroundColor; if (WhetherChooseGoodsCollection) { //收藏的商品 BuWanVideo2.0/HelpViewController.m
@@ -33,6 +33,7 @@ -(void)initScene{ self.navigationItem.title = @"帮助与反馈"; self.navigationController.navigationBar.titleTextAttributes = @{NSFontAttributeName:[UIFont systemFontOfSize:18],NSForegroundColorAttributeName:[UIColor blackColor]}; self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setImage:[[UIImage imageNamed:@"详情页面返回"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal]; BuWanVideo2.0/LookNoteController.m
@@ -74,6 +74,7 @@ -(void)createNavgationBar{ self.navigationItem.title = @"观看记录"; self.navigationController.navigationBar.titleTextAttributes =@{NSFontAttributeName:[UIFont systemFontOfSize:18],NSForegroundColorAttributeName:[UIColor blackColor]}; self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; //返回按钮 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; @@ -286,6 +287,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ NoteCell * cell = [tableView dequeueReusableCellWithIdentifier:@"NoteCell"]; cell.backgroundColor = kGlobalBackgroundColor; NSMutableDictionary * dic = [historyListDataArray objectAtIndex:indexPath.row]; NSString *str = (NSString*)[dic objectForKey:@"Name"]; if ( [self autoHeiWithHeight:str WithWidth:cell.name.frame.size.width]){ BuWanVideo2.0/MyRegardController.m
@@ -54,6 +54,7 @@ -(void)createNavgationBar{ self.navigationItem.title = @"我的关注"; self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor blackColor],NSFontAttributeName:[UIFont systemFontOfSize:18]}; self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setImage:[[UIImage imageNamed:@"详情页面返回"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal]; BuWanVideo2.0/MymessageContrlloer.m
@@ -76,6 +76,7 @@ -(void)createNavgationBar{ self.navigationItem.title = @"我的消息"; self.navigationController.navigationBar.titleTextAttributes = @{NSFontAttributeName:[UIFont systemFontOfSize:18],NSForegroundColorAttributeName:[UIColor blackColor]}; self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; //取消侧边栏消息提醒 [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"HaveMessage"]; BuWanVideo2.0/Personal_informationViewController.m
@@ -47,6 +47,7 @@ -(void)loadData{ self.navigationItem.title = @"个人资料"; self.navigationController.navigationBar.titleTextAttributes = @{NSFontAttributeName:[UIFont systemFontOfSize:18],NSForegroundColorAttributeName:[UIColor blackColor]}; self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; //返回按钮 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setImage:[[UIImage imageNamed:@"详情页面返回"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal]; @@ -58,8 +59,8 @@ //保存按钮 UIButton *saveButton=[UIButton buttonWithType:UIButtonTypeCustom]; [saveButton setTitle:@"保存" forState:UIControlStateNormal]; [saveButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [saveButton setTitleColor:[UIColor grayColor] forState:UIControlStateSelected]; [saveButton setTitleColor:[UIColor grayColor] forState:UIControlStateNormal]; [saveButton setTitleColor:[UIColor blackColor] forState:UIControlStateSelected]; [saveButton addTarget:self action:@selector(SaveInfo) forControlEvents:UIControlEventTouchUpInside]; saveButton.frame=CGRectMake(0, 0, 44, 32); UIBarButtonItem *saveBarItem=[[UIBarButtonItem alloc] initWithCustomView:saveButton]; BuWanVideo2.0/Recommend/Recommend/RecommendController.m
@@ -491,7 +491,6 @@ return self.cellRecommendAd; } else { int offset= [self getDataOffset:indexPath.section]; NSLog(@"加载cell %i-%i",indexPath.section,indexPath.row); if(self.arrayContent!=nil&&self.arrayContent.count>0){ NSUInteger Columns = [self.arrayContent[indexPath.section-offset][@"Columns"] integerValue]; if (Columns > 3) { BuWanVideo2.0/SearchController.m
@@ -199,6 +199,15 @@ NSLog(@"%@",error); } - (void)nativeExpressAdViewClosed:(GDTNativeExpressAdView *)nativeExpressAdView{ NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:3]; UICollectionViewCell *cell = (UICollectionViewCell *)[self.collectionView cellForItemAtIndexPath:indexPath]; for(UIView *subview in cell.subviews){ [subview removeFromSuperview]; } } #pragma mark ---------- SearchDelegate --------- - (void)hotSearchEvent:(NSString *)name { [self writeSearchKey:name]; @@ -355,7 +364,7 @@ return titleSize; } else { return CGSizeMake(KScreenW, 198); return CGSizeMake(KScreenW, KScreenW*0.6); } } BuWanVideo2.0/SettingController.m
@@ -49,6 +49,7 @@ -(void)loadData{ self.navigationItem.title = @"设置"; self.navigationController.navigationBar.titleTextAttributes = @{NSFontAttributeName:[UIFont systemFontOfSize:18],NSForegroundColorAttributeName:[UIColor blackColor]}; self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setImage:[[UIImage imageNamed:@"详情页面返回"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal]; BuWanVideo2.0/XYRDetailViewController.m
@@ -160,14 +160,17 @@ ApplicationDelegate.YNetdelegateRecommend = self; //实现出去应用或者回到应用的处理 ApplicationDelegate.YBackAppDelegate = self; if (KIsiPhoneX) { // self.topLayout.constant = 20; self.backLayout.constant = 39; }else{ // self.topLayout.constant = 0; self.backLayout.constant = 19; } // 获取状态栏高度 CGFloat statusBarHeight = [[UIApplication sharedApplication] statusBarFrame].size.height; self.backLayout.constant = statusBarHeight; // if (KIsiPhoneX) { // // self.topLayout.constant = 20; // self.backLayout.constant = statusBarHeight ; // }else{ // // self.topLayout.constant = 0; // self.backLayout.constant = statusBarHeight; // // } //加载基础数据 [self loadData]; //视频名称背景色 @@ -1540,6 +1543,13 @@ - (void)nativeExpressAdFailToLoad:(GDTNativeExpressAd *)nativeExpressAd error:(NSError *)error{ NSLog(@"%@",error); } - (void)nativeExpressAdViewClosed:(GDTNativeExpressAdView *)nativeExpressAdView{ UIView *superView = [nativeExpressAdView superview]; for(UIView *subview in [superView subviews]){ [subview removeFromSuperview]; } } /** * 获取视频的相关视频信息 * BuWanVideo2.0/YTHNetInterface.m
@@ -114,12 +114,17 @@ #pragma mark 网络Post请求 -(void)mangerPostWithURL:(NSString *)url WithMutableDictionary:(NSMutableDictionary *)dic withBlock:(YthNetWorkBlock)block{ [self mangerPostWithURL:url WithMutableDictionary:dic withTimeout:time withBlock:block]; } -(void)mangerPostWithURL:(NSString *)url WithMutableDictionary:(NSMutableDictionary *)dic withTimeout:(double) time_out_s withBlock:(YthNetWorkBlock)block{ manger.responseSerializer = [AFHTTPResponseSerializer serializer]; manger.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/plain"]; // 设置超时时间 [manger.requestSerializer willChangeValueForKey:@"timeoutInterval"]; manger.requestSerializer.timeoutInterval = time; manger.requestSerializer.timeoutInterval = time_out_s; [manger.requestSerializer didChangeValueForKey:@"timeoutInterval"]; NSLog(@"请 求 链 接*************************************** {%@}",url); @@ -186,7 +191,7 @@ NSString *url = [NSString stringWithFormat:@"%@/user",domainHTTP]; [self mangerPostWithURL:url WithMutableDictionary:dic withBlock:block]; [self mangerPostWithURL:url WithMutableDictionary:dic withTimeout:5.0f withBlock:block]; } - (void)postUserRequestDataNewWith:(NSMutableDictionary *)dic withBlock:(YthNetWorkBlock)block { BuWanVideo2.0/subregionViewController.m
@@ -53,7 +53,8 @@ -(void)createNavgationBar{ self.navigationItem.title = @"分类"; self.navigationController.navigationBar.titleTextAttributes =@{NSFontAttributeName:[UIFont systemFontOfSize:18],NSForegroundColorAttributeName:[UIColor blackColor]}; // 导航栏白色背景 self.navigationController.navigationBar.barTintColor = kGlobalBackgroundColor; //返回按钮 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button setImage:[[UIImage imageNamed:@"ic_back"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];