我想更新splitViewController中的detailView。 这是我尝试:如何更新splitViewController中的detailView?
//Get the application delegate
AppDelegate *delegate = [[UIApplication sharedApplication] delegate];
//Get the masterViewController
MasterViewController *master = [delegate.splitViewController.viewControllers objectAtIndex:0];
这似乎很好地工作至今。 后来我尝试这样做,以更新detailViewController标签:
master.detailViewController.myLabel.text = @"someText";
但是,这是行不通的。
那么如何正确的方式来访问detailView中的网点?
感谢您的帮助。