簡體   English   中英

Objective-C將導航欄添加到rootview

[英]Objective-C add navigationbar to rootview

我對lib XLForms有一個簡單的問題。

https://github.com/mtnbarreto/XLForm

如何使用這種形式將uinavigationbar添加到viewcontroller中?

有人有很好的榜樣嗎?

這是視圖的init方法的代碼

http://pastebin.com/p1q5QQJd

嘗試這個...

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM