Xcode中是否有一种方法(组合键、上下文菜单(可以从自定义UIViewController(例如AViewController.swift
(文件快速导航到情节提要中的屏幕,其中AViewController.swift
在"身份检查器"选项卡中显示为自定义类?
您需要在序列图像板中的身份检查器中设置序列图像板id。然后按下:
let vc = storyBoard.instantiateViewController(withIdentifier: identifier)
vc.modalPresentationStyle = .fullScreen
self.navigationController?.pushViewController(vc, animated: true)
标识符是序列图像板id
或者您可以将其呈现为:
let vc = storyBoard.instantiateViewController(withIdentifier: identifier)
vc.modalPresentationStyle = .fullScreen
self.present(vc, animated: true)