【发布时间】:2013-02-06 06:48:47
【问题描述】:
想在我的应用程序中添加这种开关,而不是圆角开关。因为它从 iOS 5.0 开始不可用。
【问题讨论】:
想在我的应用程序中添加这种开关,而不是圆角开关。因为它从 iOS 5.0 开始不可用。
【问题讨论】:
Use this link of source code 获取 Square Switch 并使用
创建TSwitch *switch = [[TTSwitch alloc] initWithFrame:(CGRect){ CGPointZero, { 76.0f, 27.0f } }];
switch.trackImage = [UIImage imageNamed:@"square-switch-track"];
switch.thumbOffsetY = -3.0f;
【讨论】: