<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Customisable UIPageControl</title>
	<atom:link href="http://www.onidev.com/2009/12/02/customisable-uipagecontrol/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/</link>
	<description>freelance iPhone design &#38; development</description>
	<lastBuildDate>Wed, 08 Sep 2010 13:32:38 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paulo</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-171</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Wed, 08 Sep 2010 13:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-171</guid>
		<description>Now the size changes is working:
dot.frame = CGRectMake(dot.frame.origin.x, dot.frame.origin.y, imgNormal.size.width, imgNormal.size.height);</description>
		<content:encoded><![CDATA[<p>Now the size changes is working:<br />
dot.frame = CGRectMake(dot.frame.origin.x, dot.frame.origin.y, imgNormal.size.width, imgNormal.size.height);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-154</link>
		<dc:creator>Mitch</dc:creator>
		<pubDate>Fri, 03 Sep 2010 14:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-154</guid>
		<description>A bit late I know! But I&#039;ve just updated the original code in the post to include the fix from Steve. Thanks.</description>
		<content:encoded><![CDATA[<p>A bit late I know! But I&#8217;ve just updated the original code in the post to include the fix from Steve. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-153</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Fri, 03 Sep 2010 14:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-153</guid>
		<description>You can change the size doin&#039;g this:
- (void)updateDots {
	
	if (imgCurrent &#124;&#124; imgNormal) {
		NSArray *dotViews = self.subviews;
		for (int i = 0; i &lt; dotViews.count; ++i) {
			UIImageView *dot = [dotViews objectAtIndex:i];
			dot.image = (i == self.currentPage) ? imgCurrent : imgNormal;
			dot.frame = CGRectMake(0, 0, imgNormal.size.width, imgNormal.size.height);
		}
	}
}</description>
		<content:encoded><![CDATA[<p>You can change the size doin&#8217;g this:<br />
- (void)updateDots {</p>
<p>	if (imgCurrent || imgNormal) {<br />
		NSArray *dotViews = self.subviews;<br />
		for (int i = 0; i &lt; dotViews.count; ++i) {<br />
			UIImageView *dot = [dotViews objectAtIndex:i];<br />
			dot.image = (i == self.currentPage) ? imgCurrent : imgNormal;<br />
			dot.frame = CGRectMake(0, 0, imgNormal.size.width, imgNormal.size.height);<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-152</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Fri, 03 Sep 2010 12:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-152</guid>
		<description>How do I increase the size of dots?</description>
		<content:encoded><![CDATA[<p>How do I increase the size of dots?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tojas</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-88</link>
		<dc:creator>Tojas</dc:creator>
		<pubDate>Tue, 03 Aug 2010 06:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-88</guid>
		<description>This code is very good.
Also works on iOS 4.0, but you have to use Steve&#039;s last comment. Thanks guys!</description>
		<content:encoded><![CDATA[<p>This code is very good.<br />
Also works on iOS 4.0, but you have to use Steve&#8217;s last comment. Thanks guys!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-60</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 18 Jun 2010 00:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-60</guid>
		<description>OMG Ignore what I said above.  Unless you like making hacky code.  Instead your answer lies in overriding one more method.

Put this in your implementation.

- (void)endTrackingWithTouch:(UITouch *)touch withEvent:(UIEvent *)event {
	[super endTrackingWithTouch:touch withEvent:event];
	[self updateDots];
}</description>
		<content:encoded><![CDATA[<p>OMG Ignore what I said above.  Unless you like making hacky code.  Instead your answer lies in overriding one more method.</p>
<p>Put this in your implementation.</p>
<p>- (void)endTrackingWithTouch:(UITouch *)touch withEvent:(UIEvent *)event {<br />
	[super endTrackingWithTouch:touch withEvent:event];<br />
	[self updateDots];<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-59</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 17 Jun 2010 23:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-59</guid>
		<description>My solution to the problem Greg Maletic found -where the page controllers revert back to white/grey after the page control is directly clicked- is to call setImageNormal and setImageCurrent from within function that gets invoked.  It&#039;s hacky, but it works.

[pgControl addTarget:self action:@selector(pageControlDidChange) forControlEvents:UIControlEventValueChanged];

Then, inside pageControlDidChange, in addition to the normal behavior you may be looking for, call the setImageNormal and setImageCurrent again</description>
		<content:encoded><![CDATA[<p>My solution to the problem Greg Maletic found -where the page controllers revert back to white/grey after the page control is directly clicked- is to call setImageNormal and setImageCurrent from within function that gets invoked.  It&#8217;s hacky, but it works.</p>
<p>[pgControl addTarget:self action:@selector(pageControlDidChange) forControlEvents:UIControlEventValueChanged];</p>
<p>Then, inside pageControlDidChange, in addition to the normal behavior you may be looking for, call the setImageNormal and setImageCurrent again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ehssan</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-53</link>
		<dc:creator>Ehssan</dc:creator>
		<pubDate>Thu, 10 Jun 2010 09:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-53</guid>
		<description>Thanx man...this works like a charm :)</description>
		<content:encoded><![CDATA[<p>Thanx man&#8230;this works like a charm <img src='http://www.onidev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-43</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 28 May 2010 17:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-43</guid>
		<description>Where do the dot images go?</description>
		<content:encoded><![CDATA[<p>Where do the dot images go?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch</title>
		<link>http://www.onidev.com/2009/12/02/customisable-uipagecontrol/comment-page-1/#comment-42</link>
		<dc:creator>Mitch</dc:creator>
		<pubDate>Fri, 21 May 2010 07:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.onidev.com/?p=219#comment-42</guid>
		<description>This is not using any private APIs.</description>
		<content:encoded><![CDATA[<p>This is not using any private APIs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
