views:

66

answers:

1

How to place a uisegmentedcontrol in the navigation bar of a view of a tabbarcontroller which is implemented through code..

A: 

In your view controller:

NSArray *items = NSArray arrayWithObject:@"Option"];
self.navigationItem.titleView = [[[UISegmentedControl alloc] initWithItems:array] autorelease];
Paul Lynch