【发布时间】:2011-06-06 10:40:18
【问题描述】:
我使用按钮操作来弹出子视图并在下面的代码中唱歌;
- (IBAction)pickerUpBtn:(id)sender {
PickerPopUpController *screen = [[PickerPopUpController alloc]initWithNibName:@"PickerPopUpController" bundle:Nil];
[self.view addSubview:screen.view];
[self presentModalViewController:screen animated:YES];
}
在我需要转到上一个窗口之后;所以我为它使用了另一个按钮动作并在动作中添加了波纹管代码
PickerViewController *screen = [[PickerViewController alloc]initWithNibName:@"PickerViewController" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:screen animated:YES];
但它不会导航到上一个视图。我该怎么办??
【问题讨论】:
标签: iphone ios4 navigation uibutton subview