开发者

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

开发者 https://www.devze.com 2022-12-30 18:37 出处:网络
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:

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

精彩评论

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

关注公众号