我已经创建了一个基于视图的新应用程序并在其上添加了按钮,并且我想打开按钮单击的另一个视图。我添加了另一个视图并尝试从那里打开,但没有任何发生。请帮助我解释从第一个视图添加和打开第二个视图的逐步过程,因为我是Iphone App开发中的新手段。我必须缺少的东西可能是UINavigationViewController等我使用下面的代码打开第二个视图。如何从基于视图的应用程序中打开另一个视图
- (IBAction)ShowList:(id) sender
{
if(self.atmList == nil)
{
ATMList *viewController = [[ATMList alloc] initWithNibName:@"ATM List" bundle:nil];
self.atmList = viewController;
[viewController release];
}
[self.navigationController pushViewController:atmList animated:YES];
}
您的快速回复将不胜感激。提前致谢。
你的答案,这里控制器是:http://计算器。com/questions/3852349/how-do-i-show-another-window-in-an-iphone-window-application – Jordan 2010-10-05 04:07:25