如何在另一个情节提要中快速显示在xib文件中的新控制器

时间:2018-08-27 12:17:25

标签: ios swift storyboard xib

我想在另一个情节提要中将控制器呈现给xib文件 在此期间,我想使用此xib来使用其他几个故事板 我该怎么办?

1 个答案:

答案 0 :(得分:-2)

请按照此步骤操作。

  1. 注册笔尖 let xibController = NewViewController(nibName: "XIBController", bundle: nil)

  2. 当前视图已正常 self.presentViewController(xibController, animated: true, completion: nil)