首页 > 其他 > 详细

一个第三方的分段器 HMSegmentControl

时间:2016-06-27 15:16:31      阅读:627      评论:0      收藏:0      [点我收藏+]

 

基本的属性和用法:

 _contentSwitch = [[HMSegmentedControl alloc] initWithSectionTitles:@[MGJLPLocalizedString(@"lifestyle_publish_what_i_posts", @"我发表的"),

                MGJLPLocalizedString(@"lifestlye_publish_what_i_like", @"我喜欢的"),

                MGJLPLocalizedString(@"lifestyle_publish_bought", @"已购买的")]];

        _contentSwitch.frame = CGRectMake(0, NAVBAR_HEIGHT, FULL_WIDTH, 55);

        _contentSwitch.backgroundColor = [UIColor clearColor];

        _contentSwitch.selectionIndicatorLocation = HMSegmentedControlSelectionIndicatorLocationDown;

        _contentSwitch.textColor = [UIColor whiteColor];

        _contentSwitch.selectionIndicatorColor = MGJ_TextPink;

        _contentSwitch.selectedTextColor = MGJ_TextPink;

        _contentSwitch.font = FONT(16.f);

        _contentSwitch.selectionIndicatorHeight = 1.5f;

        [_contentSwitch addTarget:self

                           action:@selector(contentSwitch:)

                 forControlEvents:UIControlEventValueChanged];

一个第三方的分段器 HMSegmentControl

原文:http://www.cnblogs.com/chunxin/p/5620047.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!