Advertisement
Guest User

Untitled

a guest
Sep 17th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.65 KB | None | 0 0
  1.     func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
  2.    
  3.         if response.actionIdentifier == "View"{
  4.            
  5.             let vc = TestViewController()
  6.             DispatchQueue.main.async {
  7.                 self.navigationVC?.popViewController(animated: false)
  8.                 self.window?.rootViewController?.present(vc,animated: true, completion: nil)
  9.             }
  10.         }
  11.        
  12.         //toliau handlini savo uzregistruotus actions
  13.        
  14.        
  15.        
  16.        
  17.         completionHandler()
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement