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.
How I understand you you need a reference to your view B to call the start method…
In view A:
Or do I not understand your question?