Having a problem following a few guides, specifically http://blog.originate.com/blog/2014/04/22/deeplinking-in-ios/
I\'m setting the url scheme and it\'s working wel
func pushNewView() {
if let wind = UIApplication.sharedApplication().delegate?.window {
if let rootViewController = wind?.rootViewController {
let viewToPush = YourViewController()
let nav1 = UINavigationController(rootViewController: viewToPush)
if let alreadySomeOneThere = rootViewController.presentedViewController {
alreadySomeOneThere.presentViewController(nav1, animated: true, completion: nil)
}else {
rootViewController.presentViewController(nav1, animated: true, completion: nil)
}
}
}
}