I've made an app for Apple Watch ("Brain Trainer For Apple Watch") that uses the following code:
pushControllerWithName("SumsInterfaceController", context: type)
I wanted to know if there's similar code to this for the iPhone version of Swift?
I've made an app for Apple Watch ("Brain Trainer For Apple Watch") that uses the following code:
pushControllerWithName("SumsInterfaceController", context: type)
I wanted to know if there's similar code to this for the iPhone version of Swift?
For Navigation Controller
navigationController?.pushViewController(viewController, animated: true)
For more info check this.
self.presentViewController(viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)?)
self.performSegueWithIdentifier(identifier: String?, sender: AnyObject?)
self.pushViewController(viewController: UIViewController, animated: Bool)
self.dismissViewControllerAnimated(flag: Bool, completion: (() -> Void)?)
self.popViewControllerAnimated(animated: Bool)
self.popToViewController(viewController: UIViewController, animated: Bool)
self.popToRootViewControllerAnimated(animated: Bool)