I have trouble in my application with swift 4. I'd like to move my view controller automatically when my string get a value without nil. (Promatically)
However it does not work at all.
if(rst_str != nil){
let nextView = storyboard?.instantiateViewController(withIdentifier: "viewListController") as! ViewListController
//viewListController.delegate = self;
print("log storyboard");
self.present(nextView, animated: true, completion: nil);
}
The message of "log storyboard" is printed normally. However the line of self.present is not working at all.
How can I resolve from my issue?