开发者

How to implement VERTICAL pagecontrol in iPad/ iPhone

I am aware of the procedure to implement horizontal page control. But i am very curios to know if we can implement page control VERTICALLY. For example, if the user swipes up, he goes to 2nd page and then th开发者_StackOverflow社区e 2nd dot of the pagecontrol gets highlighted. (Remember - The page control is vertical in this case)


Wouldn't pageControl.transform = CGAffineTransformMakeRotation(M_PI_2); suffice?


If you are refering to the UIPageControl item, then you will have to create it yourself as none exists (could exist as a small library on github though)

If you are looking for the page scrolling effect (you can swiperup & down to navigate through full screen pages), then you will have to look at a standard UIScrollView with the pagingEnabled property set to YES.


one method is to rotate a scrollview 90° , rotate contents -90°, should created a convenience method for converting frame from one angle to another

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜