Need help for that.
I have a tabbar with 2 views, A and B (tableviews).
In view B viewDidLoad i call [self start];
which is a NSMutableURLRequest
.
-(void)start
{
NSMutableURLRequest * //my code here....
NSString *temp = [[NSString alloc] initWithFormat: @"%d", [myArray count]];
[(UIViewController*)[self.tabBarController.viewControllers objectAtIndex:1] tabBarItem].badgeValue =temp;
}
I need to call this function -(void)start
from my view A to have a badgeValue in my viewController objectAtIndex:1;
Thanks for reading.