<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>uipagecontrol on adolsai's echo</title><link>https://adolsai.com/tag/uipagecontrol/</link><description>Recent content in uipagecontrol on adolsai's echo</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 20 Feb 2015 20:19:40 +0800</lastBuildDate><atom:link href="https://adolsai.com/tag/uipagecontrol/index.xml" rel="self" type="application/rss+xml"/><item><title>Objective-C Learning Notes - UIPageControl</title><link>https://adolsai.com/archives/Objective-C-Learning-Notes---UIPageControl.html</link><pubDate>Fri, 20 Feb 2015 20:19:40 +0800</pubDate><guid>https://adolsai.com/archives/Objective-C-Learning-Notes---UIPageControl.html</guid><description>&lt;p&gt;&#10; UIPageControl&lt;br/&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;&#10; 翻页控件&#10;&lt;/p&gt;&#10;&lt;p&gt;&#10; UIPageControl 控件在 iOS 应用程序中出现的比较频繁,尤其在和 UIScrollView 配合来显示大量数据.&#10;&lt;/p&gt;&#10;&lt;p&gt;&#10; 创建:&#10;&lt;/p&gt;&#10;&lt;pre class="brush:cpp;toolbar:false"&gt;UIPageControl *myPageControl = [[UIPageControl alloc] initWithFrame:CGRectMake(0.0,400.0, 320.0, 0.0)];&lt;/pre&gt;&#10;&lt;p&gt;&#10; 设置属性:&#10;&lt;/p&gt;&#10;&lt;pre class="brush:cpp;toolbar:false"&gt;myPageControl.numberOfPage = 5; //页面数目&#10;myPageControl.currentPage = 3; //当前页数,第四页&#10;myPageControl.hidesForSinglePage = YES; //隐藏指示器&#10;myPageControl.defersCurrentPageDisplay = YES;&#10;[myPageControl updateCurrentPageDisplay];&lt;/pre&gt;</description></item></channel></rss>