【发布时间】:2011-01-21 06:03:53
【问题描述】:
我在 Xcode 中创建了一个基于 Windows 的应用程序。我将 UIViewContoller 作为子视图推送到导航堆栈中。但问题是我无法与子视图上的控件进行交互。我是 iPhone 开发的新手。所以我不知道如何把事情做好。请在这方面帮助我。提前致谢:)
这是我在导航视图控制器中推送子视图的方式
if(self.userViewController == nil)
{
UIViewController *vc = [[UIViewController alloc] initWithNibName:@"UserViewController" bundle:nil];
self.userViewController =vc;
[vc release];
}
userViewController.title = [NSString stringWithFormat:@"Edit User"];
ShoppingListAppDelegate *delegate = [[ UIApplication sharedApplication] delegate];
[delegate.navController pushViewController:userViewController animated:YES];
【问题讨论】:
标签: objective-c cocoa-touch xcode uiviewcontroller uinavigationcontroller