In my Application I have creted view controllers for Tab Bar using XIB. I mean I added view controllers in tab bar using XIB. See picture,

So my application is like this. I have a log out functionality that will show login page. From Login page I have displayyed tab bar as
[self.view addSubview tabBarController.view];
When I log out I simply remove this tab bar and show login screen as
[self.tabBarController.view removeFromSuperView];
Then It will show login screen. When I login again, The view controllers inside tab bar is not reset. I mean If I have showed some data like names in table view, It will be there as it is when I logged in again (some time I login as different user and I get details for previous user.). I tried
self.tabBarController.viewControllers = nil;
to reset all view controllers, but it not works any more. I think each time When I log in all view controllers should call ViewDidLoad:, currently it is calling viewWillAppear:. So please let me know how could I resolve this issue
self.tabBarController = [[UITabBarController alloc] init];and init with your data items - Pavel Petrovichself.tabBarController = [[UITabBarController alloc] init];@luther - rakeshNS