ios - 如何在 Objective-C 中旋转 UIButton 和 UILabel 的文本?

标签 ios objective-c uibutton rotation uilabel

如何旋转 UIButtonUILabel 的文本? 90度,180度。

最佳答案

[*yourlabelname* setTransform:CGAffineTransformMakeRotation(-M_PI / 2)];

旋转图像 enter image description here

上一张图片 enter image description here

关于ios - 如何在 Objective-C 中旋转 UIButton 和 UILabel 的文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6326720/

相关文章:

iphone - iOS6:如何通过Identifier连接Storyboard中的UIViewController?

iphone - 我如何在开发过程中测试我的应用程序数据持久性?

ios - UITableView 中的二进制数据导致高 CPU 负载和卡住

ios - UIButton 添加没有发件人的目标

ios - UIButton 未显示在 UIViewController 中

ios - 用于播放和录制的音频单元,无需过滤器

ios - UIScrollView 和 UIView 的约束

objective-c - 在 ARC 下的 Cocoa 中,我可以获得引用另一个对象的对象列表(以编程方式或使用仪器)?

ios - 带有背景图像按钮的圆形边框 swift

ios - iOS7 UIDatePicker 中的自定义字体