xcode13适配
This commit is contained in:
@@ -756,7 +756,7 @@ NS_ENUM(NSInteger,deviceType){
|
||||
// UIApplication*app=[UIApplication sharedApplication];
|
||||
// AppDelegate*app1=app.delegate;
|
||||
// UINavigationController*nav=[[UINavigationController alloc]initWithRootViewController:ics];
|
||||
// [nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"blackbar.png"] forBarMetrics:UIBarMetricsDefault];
|
||||
// [nav setNavbgImage:[UIImage imageNamed:@"blackbar.png"]];
|
||||
// app1.window.rootViewController=nav;
|
||||
|
||||
IfishP2PMonitorController *p2pVC=[[IfishP2PMonitorController alloc] init];
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
[_indicatorView stopAnimating];
|
||||
DisconnectNetController *connectVC =[[DisconnectNetController alloc] init];
|
||||
UINavigationController *nav=[[UINavigationController alloc]initWithRootViewController:connectVC];
|
||||
[nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"blackbar.png"] forBarMetrics:UIBarMetricsDefault];
|
||||
[nav setNavbgImage:[UIImage imageNamed:@"blackbar.png"]];
|
||||
[UIApplication sharedApplication].delegate.window.rootViewController=nav;
|
||||
}];
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -171,7 +171,7 @@ extern BOOL firstLogIn;
|
||||
|
||||
LogInViewController*logIn=[[LogInViewController alloc]init];
|
||||
UINavigationController*nav=[[UINavigationController alloc]initWithRootViewController:logIn];
|
||||
[nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"blackbar.png"] forBarMetrics:UIBarMetricsDefault];
|
||||
[nav setNavbgImage:[UIImage imageNamed:@"blackbar.png"]];
|
||||
[UIApplication sharedApplication].delegate.window.rootViewController = nav;
|
||||
|
||||
}
|
||||
|
||||
@@ -768,11 +768,11 @@ Assign BOOL isPush;
|
||||
-(void)initUI{
|
||||
|
||||
self.automaticallyAdjustsScrollViewInsets = NO;
|
||||
|
||||
self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];
|
||||
[self.tableView registerNib:[UINib nibWithNibName:@"TabBarDeviceShouYeCell" bundle:nil] forCellReuseIdentifier:@"TabBarDeviceShouYeCell"];
|
||||
[self.tableView registerNib:[UINib nibWithNibName:@"TabbarDeiceSecdCell" bundle:nil] forCellReuseIdentifier:@"TabbarDeiceSecdCell"];
|
||||
//CGFloat sapce=TabContentHeaght*0.011;//20/1776
|
||||
self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];
|
||||
|
||||
self.tableView.delegate = self;
|
||||
self.tableView.dataSource = self;
|
||||
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
|
||||
|
||||
@@ -246,7 +246,7 @@ extern BOOL firstLogIn;
|
||||
LogInViewController*logIn=[[LogInViewController alloc]init];
|
||||
|
||||
UINavigationController*nav=[[UINavigationController alloc]initWithRootViewController:logIn];
|
||||
[nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"blackbar.png"] forBarMetrics:UIBarMetricsDefault];
|
||||
[nav setNavbgImage:[UIImage imageNamed:@"blackbar.png"]];
|
||||
app1.window.rootViewController=nav;
|
||||
|
||||
firstLogIn=NO;
|
||||
|
||||
Reference in New Issue
Block a user