I am able to download a file and see the progress on the ViewController when I push it through a NavigationController. However I want to show the downloads on another tabBar since my model is based on that.
The Problem: When I select to see the TabBar in question I get nothing.
I have tried: self.tabBarController.selectedIndex = 3; But that obviously only shows the ViewController and does not push the info onto it.
Any know how I need to change the bottom code to get the result I want?
ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:url];
NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
[request setUserInfo:dictionary];
[downloadTableViewObj setDownloadDirectory:path];
[downloadTableViewObj addDownloadRequest:request];
[self.navigationController pushViewController:downloadTableViewObj animated:YES];
I’m not sure of your Architecture but
UITabBarControllerhave method like :You can access the right view controller at the index you want to send it message, before or after having the tabBar change it’s selection.
Also note that
UITabBarControllercan have adelegatethat implementUITabBarControllerDelegateprotocol. That can be useful in some circumstances, but I don’t think yours is a good candidate for it.I haven’t try that particular code but something with that kind of logic should work.