5

I'm working on an universal iOS app, but a few user settings don't make as much sense on the iPad.

Can I specify a separate Settings.bundle or Root.plist for use on the iPad?

nschum
  • 15,322
  • 5
  • 58
  • 56

1 Answers1

5

from 4.0 on you will be able to just rename the file for ipad to contain ~ipad in name and ~iphoone for the iphone ones, for now you can only rename the iphone one and have 3.2 on ipad load the regular named ones.

valexa
  • 4,462
  • 32
  • 48
  • The Settings.bundle is not loaded from code. It's just placed in the app bundle. So, unfortunately, using UI_USER_INTERFACE_IDIOM is not an option. The device-specific suffixes don't seem to work for the Settings.bundle either. At least "Settings~iphone.bundle" is being ignored on iOS 4.0. – nschum Jul 19 '10 at 19:27
  • 1
    hmm how about renaming the individual files in the bundle ? did you try that ? – valexa Jul 19 '10 at 20:13
  • 1
    Good catch. This can make a very clean solution, since Root~iphone.plist works on iOS 4.0 and the iPad will use Root.plist on iOS 3.2... Unfortunately I have to be compatible with 3.1.3. So I'll probably have to wait for 4.0 on the iPad. – nschum Jul 19 '10 at 21:48