YIFEIYANG 易飞扬的博客

11六/100

iPhone开发技巧之私有API(5)— UISegmentedControl

  • 博主:易飞扬
  • 原文链接 : http://www.yifeiyang.net/iphone-development-skills-of-the-private-api-5-uisegmentedcontrol/
  • 转载请保留上面文字。




  • iPhone开发技巧之私有API(5)--- UISegmentedControl

    直接指定 UISegmentedControl 的 segmentedControlStyle 属性值,可以得到一些非公开的设置。

    1
    2
    3
    4
    
    UISegmentedControl *segmentedControl = [[UISegmentedControl alloc]
                                            initWithItems:
                                            [NSArray arrayWithObjects:@"First", @"Second", @"Third", nil]];
    segmentedControl.segmentedControlStyle = 3;
    

    效果如下:


    相关文章

    评论 (0) 引用 (0)

    还没有评论.


    发表评论


    还没有引用.