- 初始化
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);
以前月曆上的美夢,現在實現了
2 週前