Tuesday, December 24, 2013

tabbar controller how to add an option?

Only two options can click Default
Reply:
If the IB settings, you can set its properties viewControls (forgot the name)
Xcode or tabBarController.viewControllers = controls;
controls for the view controller array

Reply:
 NSMutableArray * tabControllers = [[NSMutableArray alloc] initWithObjects: 
[ViewControllers1 objectAtIndex: 0],
[ViewControllers2 objectAtIndex: 1],
[ViewControllers3 objectAtIndex: 2],
[ViewControllers4 objectAtIndex: 3], nil];
[TabBarController setViewControllers: tabControllers];
[TabControllers release];

Reply:
The property is set in IB points that can add the + sign on the line

No comments:

Post a Comment