UISwitch *pushSwitch = [[[UISwitch alloc] init] autorelease];
//位置
CGRect aFrame = pushSwitch.frame;
aFrame.origin.x = 235;
aFrame.origin.y = 8;
pushSwitch.frame = aFrame;
//大小
pushSwitch.transform = CGAffineTransformMakeScale(0.75, 0.75);
[self.view addSubview:pushSwitch];