如何在 swift 中从 xib 导航到其他 xib?
How to navigate from xib to other xib in swift?
我想从 swift class 控制的 xib 导航到 objective-c class 控制的其他 xib。
这是我的代码:
let cb_main_noticeView = cb_main_notice(nibName: "cb_main_notice", bundle: nil) as cb_main_notice
self.navigationController?.presentViewController(cb_main_noticeView, animated: false, completion: nil)
** 没用 **
注:cb_main_notice受控于objective-cclass
self.presentViewController(cb_main_noticeView, animated: false, completion: nil)
如果您的应用中没有导航控制器,请删除导航控制器。
我想从 swift class 控制的 xib 导航到 objective-c class 控制的其他 xib。
这是我的代码:
let cb_main_noticeView = cb_main_notice(nibName: "cb_main_notice", bundle: nil) as cb_main_notice
self.navigationController?.presentViewController(cb_main_noticeView, animated: false, completion: nil)
** 没用 **
注:cb_main_notice受控于objective-cclass
self.presentViewController(cb_main_noticeView, animated: false, completion: nil)
如果您的应用中没有导航控制器,请删除导航控制器。