func navigateToView() {
let storyboard = UIStoryboard.init(name: "Main", bundle: nil)
for child in (self.window?.rootViewController?.childViewControllers)! {
if child.restorationIdentifier == "Three" {
let tabbarcontroller = self.window?.rootViewController as! MainTabViewController
// Select TabBarItem with Index = 2
tabbarcontroller.selectedIndex = 2
let listTableViewController = (child.childViewControllers[0]) as! ListTableViewController
let booksTableViewController = (storyboard.instantiateViewController(withIdentifier: "Four")) as! BooksTableViewController
listTableViewController.navigationController?.pushViewController(booksTableViewController, animated: true)
}
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
mariohercules/ios-notification
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Open app in specific view when user taps on push notification with iOS Swift
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published