Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
  2.  
  3. if let tabVC = self.window?.rootViewController as? UITabBarController {
  4. if shortcutItem.type == "Hausaufgaben" {
  5.  
  6. tabVC.selectedIndex = 1
  7. tabVC.performSegue(withIdentifier: "gotoHausaufgaben", sender: nil)
  8.  
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement