presentViewController 是否有系統導航條
阿新 • • 發佈:2018-11-19
這種方式沒有導航條
[objc] view plain copy- ViewController *Controller = [[ViewController alloc] init];
- [self presentViewController:Controller animated:YES completion:nil];
這樣就有導航條了
[objc] view plain copy- ViewController *Controller = [[ViewController alloc] init];
- UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController
- [self presentViewController:nav animated:YES completion:nil];