xcode13适配

This commit is contained in:
kai60
2021-10-30 15:23:22 +08:00
parent cb537f1949
commit 6029a5eb67
17 changed files with 480 additions and 39 deletions
@@ -14,6 +14,7 @@
#import "IfishUserObsever.h"
#import "UITabBar+addRedPointBadge.h"
#import "LoveFishLiveListBaseViewController.h"
#import "UIViewController+Navgation.h"
@interface IfishMianTabViewController ()<UITabBarControllerDelegate,HomeStartAdviewDelegate>
@property (nonatomic,strong) NSArray *navigationHandlers;
@@ -132,7 +133,7 @@ extern BOOL launchedByNotification;
//nav.navigationBar.backgroundColor = [UIColor redColor];
//[nav.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
//直接切图 或扩展导航UINavigationBar+Background
[nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"blackbar.png"] forBarMetrics:UIBarMetricsDefault];
[nav setNavbgImage:[UIImage imageNamed:@"blackbar.png"]];
NSString *title=titles[i];
vc.title = title;
@@ -144,6 +145,9 @@ extern BOOL launchedByNotification;
@{NSFontAttributeName:[UIFont systemFontOfSize:19],
NSForegroundColorAttributeName:[UIColor whiteColor]}];
[nav setNavTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:19],
NSForegroundColorAttributeName:[UIColor whiteColor]}];
//IOS7后本项目可不做IOS7 以下处理
UIImage *imgnomal=[UIImage imageNamed:ImageArr[i]];
@@ -178,7 +182,7 @@ extern BOOL launchedByNotification;
}
[VCArr1 addObject:nav];
}
self.tabBar.backgroundColor=[UIColor whiteColor];
self.viewControllers=VCArr1;
if (launchedByNotification) {