natsu1211 / Alarm-ios-swift

clone of the official IOS clock alarm app written in swift
MIT License
388 stars 116 forks source link

how could you remove all the user defaults in the application ? #17

Open sultan-arshi opened 6 years ago

sultan-arshi commented 6 years ago

Are you serious to write this code because of your code below, I lost my lot of time func unpersist() { for key in ud.dictionaryRepresentation().keys { UserDefaults.standard.removeObject(forKey: key.description) } }