I want to disable and enable later an UITabbarItem from the AppDelegate.m. (To be specific, on didFinishLaunchingWithOptions should it be disabled and after a NSURLConnection it should be enabled. I already tried creating a external method in the First View Controller and calling it from the Delegate, but it do not work. Here is my attempt:
FirstViewController.m:
-(void)enableDataTab {
[[[[self.tabBarController tabBar] items] objectAtIndex:1] setEnabled:YES];
}
AppDelegate.m:
homeVC = [[FirstViewController alloc] init];
[homeVC disableDataTab];