简体   繁体   中英

Objective-C add navigationbar to rootview

I have simple question with lib XLForms.

https://github.com/mtnbarreto/XLForm

How can I add uinavigationbar into viewcontroller using this forms?

Does anyone have good example?

Here is code from init method of a view

http://pastebin.com/p1q5QQJd

Try This...

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM