qq_遁去的一_1
你是说不同界面的跳转吗? 跳转可以这样写 let viewCro = ViewController.init() // 假如用xib的话,用下面这句初始化 // let viewCro = ViewController.init(nibName:nibName, bundle:bundle) if (self.navigationController != nil) { self.navigationController!.pushViewController(viewCro, animated: true) } else { self.presentViewController(viewCro, animated: true, completion: nil) }