How to place a uisegmentedcontrol in the navigation bar of a view of a tabbarcontroller which is implemente开发者_开发百科d through code..
In your view controller:
NSArray *items = NSArray arrayWithObject:@"Option"];
self.navigationItem.titleView = [[[UISegmentedControl alloc] initWithItems:array] autorelease];
精彩评论