开发者

place UISegmentedControl in thenavigation bar of a View of a TabBarController(implemented through code)

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜