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.
我想在这个应用程序中复制这个视图的功能。
它在底部有一个 UIPageControl 和 3 个视图,只更改底部的视图,而不是整个视图。
关于如何做到这一点的任何基本建议?
好吧,UIPageControl 只是发送事件通知您更改页面......
我会将底部视图放在 UIScrollView 中(这反过来将包含您要交替的 3 个视图),当用户单击 UIPageControl 时,您将设置 UIScrollView 的 contentOffset。
说得通?