How to reload the tableview when i am getting the push notification?
===

I have an Iphone application in which i am adding push notifications.when i am recieving the push notification i need to go to particular view where i am loading a table view after calling a webservice.Here the pbm is when i am standing in the same view if i got a push message i need to reload the tableview both in the foreground and background.But when i am doing that it is not working correctly.Can anybody point me in the right direction for achieving this?`

    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
    	
    	NSLog(@"########################################didReceiveRemoteNotification****************************###################### %@",userInfo);
    	//check application in forground or background
    	if(application.applicationState == UIApplicationStateActive)
    	{
            if(tabBarController.selectedIndex==0)
            {
                NSArray *mycontrollers = self.tabBarController.viewControllers;
                NSLog(@"%@",mycontrollers);
                [[mycontrollers objectAtIndex:0] viewWillAppear:YES];
                mycontrollers = nil;  
                
                
            }
    
            
            
            
             tabBarController.selectedIndex = 0;
    		//NSLog(@"FOreGround");
            //////NSLog(@"and Showing %@",userInfo)
    	}
    	else {
            
            
            tabBarController.selectedIndex = 0;
    		
            
    		
    		
        }
    	
    	
    }

`