According UserDefaults and other *.plist.
From iOS SDK codes, and related Apple official document..
extension UserDefaults {
/*!
NSUserDefaultsSizeLimitExceededNotification is posted on the main queue when
more data is stored in user defaults than is allowed. Currently there is no
limit for local user defaults except on tvOS, where a warning notification will
be posted at 512kB, and the process terminated at 1MB. For ubiquitous defaults,
the limit depends on the logged in iCloud user.
*/
@available(iOS 9.3, *)
public class let sizeLimitExceededNotification: NSNotification.Name
// ....
}
Summary
- Currently there is no limit for local user defaults
- On tvOS, where a warning notification will be posted at 512kB, and the process
terminated at 1MB.
- For ubiquitous defaults, the limit depends on the
logged in iCloud user.