/**
* 切换城市
*/
- (IBAction)changeCity {
MTCityViewController *city = [[MTCityViewController alloc] init];
MTNavigationController *nav = [[MTNavigationController alloc] initWithRootViewController:city];
nav.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:nav animated:YES completion:nil];
// modal出来的是MTNavigationController
// dismiss掉的应该也是MTNavigationController
}
改变view的大小
最新推荐文章于 2021-05-26 07:56:03 发布