I have an app that chooses whether or not to display a tab on a UITabBar based on the Settings application. Is there a way to read straight from the Settings bundle to modify whether or not to display my data?
At the moment, I am reading from Info.plist as follows:
But I am having a hard time getting the Settings bundle to modify what is in Info.plist, then having the app detect whether or not to display the tab.
If it is possible, how would I go about doing it (and since I'm new to coding, do you possibly have some sample code
)?
At the moment, I am reading from Info.plist as follows:
Code:
NSBundle *bundle = [NSBundle mainBundle];
NSDictionary *info = [bundle infoDictionary];
if ([info boolForKey:@"showStore"] == YES)
{
localNavigationController = [self createNavigationControllerWrappingViewControllerForDataSourceOfClass:[StoreClass class]];
[localViewControllersArray addObject:localNavigationController];
[localNavigationController release];
}
But I am having a hard time getting the Settings bundle to modify what is in Info.plist, then having the app detect whether or not to display the tab.
If it is possible, how would I go about doing it (and since I'm new to coding, do you possibly have some sample code