Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. @UIApplicationMain
  2. class AppDelegate: UIResponder, UIApplicationDelegate {
  3.  
  4. var window: UIWindow?
  5.  
  6. func application(_ application: UIApplication, didFinishLaunchingWithOptions
  7. launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  8.  
  9.  
  10. //=====================ADD ESSAS LINHAS====================
  11. let badge = UIApplication.shared.applicationIconBadgeNumber
  12.  
  13. if badge > 0 {
  14. UIApplication.shared.applicationIconBadgeNumber = 0
  15. }
  16. //========================================================
  17.  
  18.  
  19. return true
  20. }
  21.  
  22. ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement