मैं टैबबार नियंत्रक (UIViewController) में निहित सभी दृश्यों को फिर से लोड करना चाहता हूं। खोज के बाद मुझे पता चला कि मुझे setNeedsDisplay विधि लागू करना है, लेकिन मुझे यह नहीं मिल रहा है कि मैं इसे कहां लागू करूँ। अन्य कोई विकल्प भी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];
}
जब आप अपने वीसी को पुनः लोड/रीफ्रेश करना चाहते हैं? – Maulik
मैं ऐप प्रतिनिधि को किसी अन्य एनएसओब्जेक्ट क्लास में कॉल करता हूं जहां मैंने कुछ बटन एक्शन डाल दिया .. जब बटन दबाया जाता है तो मैं वीसी के –