[英]Objective-C add navigationbar to rootview
我對lib XLForms有一個簡單的問題。
https://github.com/mtnbarreto/XLForm
如何使用這種形式將uinavigationbar添加到viewcontroller中?
有人有很好的榜樣嗎?
這是視圖的init方法的代碼
嘗試這個...
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:<Your View Controller>]
[self.window setRootViewController:navigationController];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.