下面的代码来自另一个SO帖子,我的问题是可以使用此方法从一个视图转换到下一个视图,如果是这样的话,该怎么办?
// origView is an instance variable/IBOutlet to your original view.
- (IBAction)switchToPhoneView:(id)sender {
if (origView == nil)
origView = self.view;
self.view = phoneViewController.view;
}
- (IBAction)switchToOriginalView:(id)sender {
self.view = origView;
}