Search code examples
iphoneuniversal-binary

iPhone SDK - How is data shared in a universal app


Stack overflow

I want to make a universal version of my app available, but I am wondering how is data managed between the iPad and the iPhone versions? -Are they completely independent? or if I have a plist in the iPad app, does it also appear in the iPhone app. If so, is there any syncing etc etc.

I have a few months experience with single iPad or iPhone apps, but never a universal.

Thanks again.

UPDATE: I was interested in the files in the /Documents folder, does this automatically update on itunes syncing at all?


Solution

  • They are shared, resources such as plists, images, sqlite db's etc. The default "Universal Application" template creates groups for iPhone specific, iPad specific, and shared. If you create the resources in the correct place, they will be compiled into the application bundle for the correct platform.