【问题标题】:UISwitch Older Version [closed]UISwitch旧版本[关闭]
【发布时间】:2013-02-06 06:48:47
【问题描述】:

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

【问题讨论】:

    标签: iphone ios ipad uiswitch


    【解决方案1】:

    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;
    

    【讨论】:

      猜你喜欢
      • 2013-08-25
      • 2011-12-12
      • 2010-12-16
      • 1970-01-01
      • 2014-10-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-08
      相关资源
      最近更新 更多