My app needs to download a decent amount of contents from a server to be able to be functional.
Apple guidelines about data storage mentions that this kind of data, "needed-to-work-but-easily-refetchable" shouldn't be included in iCloud/iTunes backups: fair enough.
The tricky part is that the code to prevent a directory to be backed up is different between iOS 5.0, 5.0.1 and 5.1 (cf. this technical note).
My app currently supports iOS 5.0 as a deployment target.
What should I do between the different following options:
- set the deployment target to 5.1 (straight-forward but i can't find data about proportion of users still being in iOS 5.0 and 5.0.1 to be comfortable introducing the subject to my boss)
- implementing both 5.0.1 and 5.1 codes provided by Apple but it raises some issues:
- my usual way to detect if a device is running a speficic iOS version is to use respondsToSelector: with a selector introduced in the iOS version i'm targeting but iOS 5.1 seems to introduce constants and not-universal classes only. How to be sure i'm running iOS 5.1 or later?
- what about devices running iOS 5.0? storing data into Caches would be super annoying to deal with both for the development team and the user experience
Any other option to recommend?