xcode13适配
This commit is contained in:
@@ -72,7 +72,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;
|
||||
|
||||
}];
|
||||
@@ -230,7 +230,7 @@
|
||||
DisconnectNetController*disconectvc=[[DisconnectNetController alloc]init];
|
||||
|
||||
UINavigationController *nav=[[UINavigationController alloc]initWithRootViewController:disconectvc];
|
||||
[nav.navigationBar setBackgroundImage:[UIImage imageNamed:@"blackbar.png"] forBarMetrics:UIBarMetricsDefault];
|
||||
[nav setNavbgImage:[UIImage imageNamed:@"blackbar.png"]];
|
||||
//self.window.rootViewController=nav;
|
||||
[self presentViewController:nav animated:YES completion:nil];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user