美文网首页
iOS自定义SegmentedControl 控件

iOS自定义SegmentedControl 控件

作者: 天天有写不完的代码 | 来源:发表于2017-08-19 18:22 被阅读34次

GitHub 地址: https://github.com/mengtian-li/MTSegmentedControl

README

MTSegmentedControl

Overview

MTSegmentedControl is a UIView widget imitate from CocoaTouch's SegmentedControl.

imageimage

MTSegmentedControl can Customize segmented border widht border cornerRadius selected color unselected color and so on, which System's Control can't satisfy you

Useage

  • git clone or download this project
  • drag MTSegmentControl and Category(as your needed) group to your project
  • #import "MTSegmentedControl.h"
    MTSegmentedControl *segmentControl = [[MTSegmentedControl alloc] initWithItem:@[@"你好",@"再见哇",@"萨瓦迪卡"]];
    segmentControl.frame = CGRectMake(0, 100, 250, 40);

License

MIT. See LICENSE for details.

相关文章

网友评论

      本文标题:iOS自定义SegmentedControl 控件

      本文链接:https://www.haomeiwen.com/subject/vdatdxtx.html