开发者

How To Replicate This UIPageControl Look?

开发者 https://www.devze.com 2023-03-17 11:52 出处:网络
I want to replicate the functionality of this view in this app. It has a UIPageControl at the bottom with 3 views that only changes the 开发者_Go百科view at the bottom, and not the whole view.

I want to replicate the functionality of this view in this app.

It has a UIPageControl at the bottom with 3 views that only changes the 开发者_Go百科view at the bottom, and not the whole view.

Any basic advice on how to accomplish this?

How To Replicate This UIPageControl Look?


Well, UIPageControl simply sends events informing you to change a page...

I would place the bottom view in a UIScrollView (that in turn would contain the 3 views you want to alternate), and when the user clicks the UIPageControl, you would set the contentOffset of the UIScrollView.

Makes sense?

0

精彩评论

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