我启动以下模态控制器:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *modal = [storyboard instantiateViewControllerWithIdentifier:@"modalController"];
modal.title = @"Example Title";
[self presentModalViewController:modal animated:YES];
我将标题设置为:
modal.title = @"Example Title";
但这不起作用,任何人都可以帮助我吗?
编辑:我已经用这样的 UINavigationController 包装了我的 ModalView