I have 2 view controllers and want to navigate from first one to the second without any user interaction but based on variable came from http request
Edit:- 1- I tried to use segue like this: self.performSegueWithIdentifier("updateuser", sender:nil) but it return no segue with identifier 'updateuser
2- i want to create navigation based on my variable without any user interaction
//first Viewcontroller
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let mapViewControllerObj = self.storyboard?.instantiateViewControllerWithIdentifier("update") as? hhViewController
self.navigationController?.pushViewController(mapViewControllerObj!, animated: true)
}
}
//second viewcontroller
class hhViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = UIColor.whiteColor()
}