我有一个基于导航的应用程序,其中我将 ABPeoplePickerNavigationController 作为子视图添加到我的导航控制器中,如下所示:我在将子视图添加到navView
.
ABPeoplePickerNavigationController *peoplePicker = [[ABPeoplePickerNavigationController alloc] init];
peoplePicker.peoplePickerDelegate = self;
navView = [[UIView alloc] init];
navView = [[self.view superview] superview];
[[[self.view superview] superview] addSubview:[peoplePicker view]];
它工作得很好,但是当我完成了 PeoplePicker 并且我想回到以前的视图时。我使用了这段代码,但它不起作用。
[[[self.view superview] superview] addSubview:navView];
我不明白,我已经从子视图中保存了 navView,现在我不能把它带回来?