Tôi muốn tải lại tất cả các chế độ xem có trong bộ điều khiển thanh tab (UIViewController) .Sau khi tìm kiếm tôi thấy rằng tôi đã áp dụng phương thức setNeedsDisplay nhưng tôi không thể nhận được nơi tôi nên áp dụng nó. cũng được hoan nghênhLàm thế nào để tải lại UIViewController
- (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];
}
khi bạn muốn tải lại/làm mới VC của mình? – Maulik
Tôi gọi đại biểu ứng dụng trong một lớp NSObject khác nơi tôi đặt một số thao tác nút .. khi nút được nhấn thì tôi muốn tải lại số VC của –