如何使用UIPageControl创建多个视图? [英] How do I use UIPageControl to create multiple views?

查看:97
本文介绍了如何使用UIPageControl创建多个视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为我的应用程序使用UIPagecontrol,我不知道如何开始。我是一个初学者,而苹果给我的例子是相当复杂。我需要的是3页,每个页面都有不同的视图。谁能帮我到这里?

I need to use UIPagecontrol for my application, and I'm not sure how to get started. I'm a beginner, and the examples that apple gives me are pretty complicated. All I need are 3 pages with different views for each of them. Can anyone help me out here?

推荐答案

这是一个很好的 example from Cocoa With Love。它只能重复使用2个实际视图,这是一个很好的低内存占用。

Here is a nice example from Cocoa With Love. It reuses only 2 actual views, for a nice low memory footprint.

这篇关于如何使用UIPageControl创建多个视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆