iOS 在自定义UITableViewCell 在cell的中实
2020-06-15 本文已影响0人
ZONG丶
不同界面纯代码跳转
@objc func goNextPage(_ sender:Any) {
//拿到ViewController
let nextPage = self.storyboard!.instantiateViewController(withIdentifier: "NextViewController") as! TestViewController
//跳转
self.navigationController?.pushViewController(nextPage, animated: true)
}

storyboard跳转的页面要设置identity里的storyboard ID与之一样:NextViewController