Cómo recargar UIViewController
Quiero volver a cargar todas las vistas contenidas en el controlador de la barra de pestañas (UIViewController) .Después de la búsqueda, encontré que debo aplicar el método setNeedsDisplay pero no puedo llegar a donde debería aplicar. Cualquier otra alternativa también es bienvenida
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
.....
.....
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
[self customToolbar];
[self.window addSubview:tabBarController.view];
[self.window makeKeyAndVisible];
return YES;
}
-(void)customToolbar
{
//Declared view controllers and their Navigation Controller
.....
//Declared tab bar items
.....
tabBarController = [[GTabBar alloc] initWithTabViewControllers:viewControllersArray tabItems:tabItemsArray initialTab:1];
}