I have a barButtonItem and I am performing an action from that to show another viewController(first in hierarchy), but it gets hard, cause if I try
self.dismissViewControllerAnimated(true, completion:nil)
it gets me not that viewController, that I need. also, if I am doing
var navigCont = UINavigationController(rootViewController: destinationViewController)
navigCont.navigationBar.barTintColor = instaColor
navigCont.navigationBar.tintColor = UIColor.whiteColor()
navigCont.navigationBar.translucent = false
navigCont.presentViewController(destinationViewController, animated: true, completion: nil)
it gets error, cause
Application tried to present modally an active controller
So I am stucked, and I don't know how to present my VC right. Any advices?