有没有办法让 UIButton 垂直显示,文本向下阅读,而不是横向显示?你能用IB或者编程的方式做到这一点吗?或者您需要使用 Photoshop 来制作自定义按钮吗?
干杯,山姆
最佳答案
// Define the transform
CGAffineTransform transform = CGAffineTransformMakeRotation(90 * (M_PI / 180));
// Initialize the UIView
UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 320)];
// Do the transformation
// in this case, rotate the UIView 90 degrees
myView.transform = transform;
关于iphone - 制作一个垂直的 UIButton,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2032916/