- 初始化
UISwitch *switch= [ [ UISwitch alloc ] initWithFrame: CGRectMake(200, 10, 0, 0) ];
switch.on = NO;
switch.tag = 2;
[switch addTarget:self action:@selector(switchAction:) forControlEvents:UIControlEventValueChanged];
[self addSubview: jumpToNextAuto]; - 縮小要用 transform
switch.transform = CGAffineTransformMakeScale(0.75, 0.75);
一年一度諾貝爾講座
1 週前