【问题标题】:How to navigate from xib to other xib in swift?如何快速从 xib 导航到其他 xib?
【发布时间】:2015-07-23 00:21:47
【问题描述】:

我想从 swift 类控制的 xib 导航到由 Objective-c 类控制的其他 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-c类控制

【问题讨论】:

  • 那么问题出在哪里?

标签: ios swift navigation


【解决方案1】:
self.presentViewController(cb_main_noticeView, animated: false, completion: nil)

如果您的应用中没有导航控制器,请移除 navigationController。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-15
    • 1970-01-01
    相关资源
    最近更新 更多