chr*_*sby 4 xib viewcontroller tableviewcell segue swift
有没有办法如何Segue公司从厦门国际银行文件(定制TableViewCell)到另一个的ViewController在Main.storyboard.
在主故事板中,不可能拖动segue.
在单元格中,我有一个按钮,我想要更改视图.我该如何解决?
谢谢!
您始终可以从故事板中实例化视图控制器并将其显示在按钮上:
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let vc = storyboard.instantiateViewControllerWithIdentifier("ViewControllerID") as UIViewController
self.presentViewController(vc, animated: true, completion: nil)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4918 次 |
| 最近记录: |