Creating a Vertical UIPageControl
问题 Anyone have an idea how to create a vertical UIPageControl? I have a UIScrollView with pagination enabled and I would like to have the UIPageControl sit on the side and appear vertically instead of horizontally. Thank you in advance... 回答1: You can apply a rotation transformation to the UIPageControl. pageControl.transform = CGAffineTransformMakeRotation(M_PI_2); Swift 3.0 let angle = CGFloat(M_PI_2) pageControl.transform = CGAffineTransform(rotationAngle: angle) Swift 4.0 let angle = CGFloat