1

Can I change the infoPlist Bool for Application supports iTunes file sharing programmatically

Something along the lines of:

[[NSBundle mainBundle] objectForInfoDictionaryKey:@"Application_supports_iTunes_file_sharing"] = NO]];

JSA986
  • 5,870
  • 9
  • 45
  • 91

1 Answers1

0

This is not possible, for the same reason that you cannot change values inside plist.info programmatically.

If you need a changeable data element for your own app, it goes to NSUserDefaults. All the special flags in info.plst need to be set statically. You can have different flags based on compilation target (say, debug vs. release), but it needs to be compiled into your bundle statically.

Community
  • 1
  • 1
Sergey Kalinichenko
  • 714,442
  • 84
  • 1,110
  • 1,523