You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
665 B

//
// TFSetSwitchTableViewCell.m
// WXReader
//
// Created by 谢腾飞 on 2020/12/2.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import "TFSetSwitchTableViewCell.h"
@interface TFSetSwitchTableViewCell ()
@end
@implementation TFSetSwitchTableViewCell
- (void)createSubviews
{
[super createSubviews];
self.switchButton = [[KLSwitch alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - 51 - kHalfMargin - kQuarterMargin, 10, 51, 31)];
self.switchButton.transform = CGAffineTransformMakeScale(0.7, 0.7);//缩放
self.switchButton.onTintColor = kMainColor;
[self.contentView addSubview:self.switchButton];
}
@end