无法从另一个viewcontroller转到第一个标签栏。 tabbar在appdelegate.Please帮助中声明。还有其他办法吗? 无论如何我想去第一个标签栏。
- (IBAction)createThread:(id)sender {
BOOL isNetworkAvailable=[[IXNetworkDataManager sharedNetworkDataManager] checkForNetworkConnection];
if(isNetworkAvailable)
{
NSDate *replyDateInfo = [NSDate date];
NSString *loginUser=[[NSUserDefaults standardUserDefaults] valueForKey:@"currentUser"];
UserInfo *info=[[IXDataBaseManager sharedNetworkDataManager] retrieveCurrentUserDetailsForUser:loginUser];
if(info!=nil)
{
[[IXNetworkDataManager sharedNetworkDataManager] createThreadWithDetails:self.selectedMessageArray];
[self manageThreadWithDetails:self.selectedMessageArray];
AppDelegate *sharedDelegate=(AppDelegate*)[UIApplication sharedApplication].delegate;
[sharedDelegate.tabBarController setSelectedIndex:0];
//[self dismissViewControllerAnimated:YES completion: nil];
}