Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @UIApplicationMain
- class AppDelegate: UIResponder, UIApplicationDelegate {
- var window: UIWindow?
- func application(_ application: UIApplication, didFinishLaunchingWithOptions
- launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
- //=====================ADD ESSAS LINHAS====================
- let badge = UIApplication.shared.applicationIconBadgeNumber
- if badge > 0 {
- UIApplication.shared.applicationIconBadgeNumber = 0
- }
- //========================================================
- return true
- }
- ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement