我有两个屏幕。我想在第二个屏幕中更改导航栏后单击第一个屏幕按钮。我使用故事板
第一个屏幕代码
-(IBAction) ChangeSecondPageTitle: (id) sender {
SecondViewController *second=[[self storyboard] instantiateViewControllerWithIdentifier:@"second"];
second.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
second.detailTitle.topItem.title=@"example";
[self presentModalViewController:second animated:YES];
}
第二个屏幕.h
@property (weak, nonatomic) IBOutlet UINavigationBar *detailTitle;