29 lines
665 B
Objective-C
29 lines
665 B
Objective-C
//
|
|
// 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
|