[英]how to navigate the screen from app delegate to viewController in xcode 4.4
I am using xcode 4.4 on os x 10.7,in any version if we give the navigation controller in the appdelegate the screen will navigate to the what ever the viewcontroller we have given.But in Xcode 4.4 its not navigating and its showing empty view controller.And in that view controller also i am not able to navigate to another view controller by using giving the action to the button. 我在os x 10.7上使用xcode 4.4,在任何版本中,如果我们在appdelegate中提供导航控制器,屏幕将导航到我们给定的viewcontroller。但是在Xcode 4.4中,它无法导航并且显示为空视图控制器。而且在该视图控制器中,我也无法通过使用按钮操作来导航到另一个视图控制器。
Thanks in advance for any help. 在此先感谢您的帮助。
The app delegate never appears on the screen... It has the window property which refers to the screen. 应用程序委托永远不会出现在屏幕上...它具有引用屏幕的window属性。 What i would suggest doing is initializing a view controller, then initialize a navigation controller and set the rootviewcontroller property of that to the view controller you created earlier. 我建议做的是初始化一个视图控制器,然后初始化一个导航控制器,并将其rootviewcontroller属性设置为您先前创建的视图控制器。 Then in the applicationDidFinishLaunchingWithOptions method in the app delegate, do [self.window setRootViewController: nameOfYourNavigationController ]; 然后在应用程序委托的applicationDidFinishLaunchingWithOptions方法中,执行[self.window setRootViewController: nameOfYourNavigationController ] ;。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.