When I update the Xcode to 11.2.1, then build the app have layout problem, like this.
Asked
Active
Viewed 111 times
0
-
use fullScreen property for modal VC – Alexandr Kolesnik Nov 28 '19 at 07:25
1 Answers
1
try to presenting viewController
using below code.
Swift:
let vc = UIViewController()
vc.modalPresentationStyle = .fullScreen
self.present(vc, animated: true, completion: nil)
Objective-c:
UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
ViewController *vc = [story instantiateViewControllerWithIdentifier:@"ViewController"];
vc.modalPresentationStyle = UIModalPresentationFullScreen ;
[self presentViewController:vc animated:YES completion:nil] ;

Nick
- 875
- 6
- 20