button=[UIButtonbuttonWithType:UIButtonTypendedRect];//定义一个圆角按钮
button.frame=CGRectMake(120, 320, 60, 30);//定义他的位置,大小
[buttonsetTitle:@"ok1"forState:UIControlStateNormal];
CGAffineTransform transform =CGAffineTransformRotate(3.14/6);//定义一个transform 旋转(3.14/6);
[buttonsetTransform:transform];
button1=[UIButtonbuttonWithType:UIButtonTypeRoundedRect];
button1.frame=CGRectMake(40, 300, 60, 30);
[button1setTitle:@"ok2"forState:UIControlStateNormal];
CGAffineTransform transform1 = CGAffineTransformMakeTranslation(100, 10.0);//移动位置
[button1setTransform:transform1];