简体   繁体   中英

How to present new controller in a xib file swift in another storyboard

我想在另一个故事板中将控制器呈现给 xib 文件同时,我想使用这个 xib 来使用其他几个故事板 我该怎么做?

Please follow this step.

  1. Register Nib let xibController = NewViewController(nibName: "XIBController", bundle: nil)

  2. Present View Modally self.presentViewController(xibController, animated: true, completion: nil)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM