Xib显示如下: <注意箭头处即可>
按住Control键,点击Files'owner拖动到View即可.
加载该控制器如下:
func registerClick() { let registerVc = RegisterViewController() registerVc.title = "注册" self.navigationController?.pushViewController(registerVc, animated: true) }