UISwitch *mySwitch = [[UISwitch alloc] init]; mySwitch.transform = CGAffineTransformMakeScale(0.75, 0.75); imageView.transform = CGAffineTransformMakeRotation(M_PI);