Objective-C将导航栏添加到rootview



我有一个关于libXLForms的简单问题。

https://github.com/mtnbarreto/XLForm

如何使用此表单将uinavigationbar添加到viewcontroller中?

有人有好榜样吗?

以下是视图的init方法的代码

http://pastebin.com/p1q5QQJd

试试这个。。。

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:<Your View Controller>]   
[self.window setRootViewController:navigationController];

最新更新