我是一个iPhone开发新手。我想创建一个应用程序,首先会有一个UIViewController,其中包含一个按钮。现在点击按钮后,它应该加载一个UINavigation控制器。这是我的实现方法:
i created a UIViewController class, where i took a
-(IBAction) PressMeFunc:(id) sender
for the button to be pressed.
Then i created a UIView xib file.I did the required steps in the IB.
Then in the AppDelegate, i added the ViewController's instance as a Subview of the window.
到目前为止,一切都好。
接下来,我如何在按下按钮时加载一个导航控制器?
我知道如何从基于窗口的应用程序构建一个navigationController项目,但是我在将NavigationController作为UIView的子视图时遇到了困难。
非常感谢您的帮助。