GPCustomSegment 0.0.6

GPCustomSegment 0.0.6

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2016 年 8 月

George Prokopchuk 维护。




  • George Prokopchuk

安装

GPCustomSegment 通过 CocoaPods 可用。要安装它,只需将以下行添加到您的 Podfile 中

pod "GPCustomSegment"

示例和用法

    _switchSegment = [[GPCustomSegment alloc] initWithImages:@[@"image", @"image",@"image"]
                                          disabledImageColor:[UIColor lightGrayColor]
                                          selectedImageColor:[UIColor yellowColor]
                                           pressureViewColor:[UIColor redColor]
                                             backgroundColor:[UIColor whiteColor]
                                                 borderColor:[UIColor clearColor]
                                                    andFrame:CGRectMake(30, 50, 150, 50)];
    [_switchSegment addTarget:self
                           action:@selector(segmentedControlValueChanged:)
                 forControlEvents:UIControlEventValueChanged];

    [self.view addSubview:_switchSegment];

作者

George Prokopchuk, [email protected]

许可证

GPCustomSegment 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。