iphone sdk如何从详情视图页面返回到UITableView页面
我有一个主页设置为 UITableView。我将其设置为您可以单击一行,然后转到详细信息页面,其中有一个 UIButton(保存按钮),我想让应用程序返回到原始页面。我知道它会自动将左栏按钮项设置为返回按钮,但我需要在视图的主要部分使用 UIButton。这是用于初始化详细视图的代码。
addInputViewController *addV = [[addInputViewController alloc] initWithNibName:@"addInputViewController" bundle:[NSBundle mainBundle]];
addV.selectedCountry = selectedCountry;
[self.navigationController pushViewController:addV animated:YES];
[addV release];
addV = nil;
I have a main page set as a UITableView. I have it set so that you can click on a row, then go to a detail page where there is a UIButton (a save button) which I would like to make the app return to the original page. I know that it automatically sets a left bar button item as a return button, but I need to use a UIButton on the main part of the view. Here is the code used to initialize the detail view.
addInputViewController *addV = [[addInputViewController alloc] initWithNibName:@"addInputViewController" bundle:[NSBundle mainBundle]];
addV.selectedCountry = selectedCountry;
[self.navigationController pushViewController:addV animated:YES];
[addV release];
addV = nil;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
称呼
Call