我想把这种开关添加到我的应用程序中,而不是圆角的那个。因为它从iOS 5.0开始不可用。

发布于 2013-02-06 14:55:46
用于get Square Switch和Create的Use this link of source code
TSwitch *switch = [[TTSwitch alloc] initWithFrame:(CGRect){ CGPointZero, { 76.0f, 27.0f } }];
switch.trackImage = [UIImage imageNamed:@"square-switch-track"];
switch.thumbOffsetY = -3.0f;https://stackoverflow.com/questions/14723211
复制相似问题