user2401565
user2401565

Reputation: 11

iOS - Does UIPasteboard persist across major OS upgrades?

I'm developing an app that uses a custom pasteboard for persisting information. I tried an OS upgrade from iOS 6 to iOS 6.1.4 (over the air) and everything was persisted just fine, but when upgrading to iOS 7 beta 1 (with iTunes), the pasteboard was deleted.

I'm wondering what happened. Could it be that UIPasteboard persists only when doing minor OS upgrades, or is it related to the fact that I upgraded with iTunes.

Upvotes: 1

Views: 303

Answers (1)

Jack Humphries
Jack Humphries

Reputation: 13267

It's probably due to the fact that you upgraded with iTunes. Using the pasteboard to save information is a bad idea though. The information is not guaranteed to persist, and will be wiped out eventually. You should save the information to a file or use NSUserDefaults.

Upvotes: 1

Related Questions