Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我试图制作一个垂直的UISegmentControl. 它在垂直模式下工作正常,但标签也是垂直的。如何使UISegmentControl标签水平?
UISegmentControl
尝试浏览段子视图以查找标签并在标签上进行旋转:
for(UIView *v in segmentedView.subviews) { if([v isKindOfClass:[UILabel class]]) { double angle = 45.0; v.transform = CGAffineTransformMakeRotation(M_PI * angle / 180.0); // rotate to 45 degree } }