I have this situation:

How can I access the 3rd Tab bar badge from AppDelegate?
I've used this code:
UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
UIViewController *vc = [[UIViewController alloc] init];
if ([nonLette isEqualToString:@"0"]) {
for (vc in tabBarController.viewControllers) {
if (vc.tabBarItem.tag == 999) {
vc.tabBarItem.badgeValue = nil;
}
}
but the self.window.rootViewController returns "start View" and so does not work.