<?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: UIPageControl + UIScrollView</title>
	<atom:link href="http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 07 Aug 2010 21:58:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ben Kaiser</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-13428</link>
		<dc:creator>Ben Kaiser</dc:creator>
		<pubDate>Wed, 30 Jun 2010 06:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-13428</guid>
		<description>Thank you very much I was in need of this because i had looked at several of my books and they all just had where you had to tap on the page control and it was very hard and annoying and when i tested my app my little brother said why isnt the page changing when i swipe and I knew that would also be a problem for the users so now thnx to your project it will be a nice clean and easy user interface.... THANK YOU XD</description>
		<content:encoded><![CDATA[<p>Thank you very much I was in need of this because i had looked at several of my books and they all just had where you had to tap on the page control and it was very hard and annoying and when i tested my app my little brother said why isnt the page changing when i swipe and I knew that would also be a problem for the users so now thnx to your project it will be a nice clean and easy user interface&#8230;. THANK YOU XD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BUDDAx2</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-12921</link>
		<dc:creator>BUDDAx2</dc:creator>
		<pubDate>Thu, 27 May 2010 19:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-12921</guid>
		<description>How many pages can I create? I want to create calendar app with different image on each day. Can I create 365 pages?</description>
		<content:encoded><![CDATA[<p>How many pages can I create? I want to create calendar app with different image on each day. Can I create 365 pages?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Janes</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-11707</link>
		<dc:creator>David Janes</dc:creator>
		<pubDate>Sun, 28 Mar 2010 01:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-11707</guid>
		<description>Hi Matej, thank you! I had just reopened this code to reuse in a project...</description>
		<content:encoded><![CDATA[<p>Hi Matej, thank you! I had just reopened this code to reuse in a project&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matej Hrescak</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-11699</link>
		<dc:creator>Matej Hrescak</dc:creator>
		<pubDate>Sat, 27 Mar 2010 22:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-11699</guid>
		<description>Hi, 

Very useful resource, thanks. Has a little bug though - when you scroll to a page and then use the UIPageControl, the pageControl is not updated. It&#039;s because the scrollViewDidEndDecelerating is not fired when using the pageControl. Solution is in implementing this method too:

- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)_scrollView
{
	pageControlIsChangingPage = NO;
}</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Very useful resource, thanks. Has a little bug though &#8211; when you scroll to a page and then use the UIPageControl, the pageControl is not updated. It&#8217;s because the scrollViewDidEndDecelerating is not fired when using the pageControl. Solution is in implementing this method too:</p>
<p>- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)_scrollView<br />
{<br />
	pageControlIsChangingPage = NO;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Janes</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-11017</link>
		<dc:creator>David Janes</dc:creator>
		<pubDate>Sun, 14 Mar 2010 13:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-11017</guid>
		<description>Umm, the usual way I&#039;m sure? Instead of adding a UIImageView, add a UIView and add UIImageView and UIButton or whatever via addSubview:</description>
		<content:encoded><![CDATA[<p>Umm, the usual way I&#8217;m sure? Instead of adding a UIImageView, add a UIView and add UIImageView and UIButton or whatever via addSubview:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-10986</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 13 Mar 2010 22:43:06 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-10986</guid>
		<description>Great Work! Is it possible to add a UIButton to each page? If so how would you do it?</description>
		<content:encoded><![CDATA[<p>Great Work! Is it possible to add a UIButton to each page? If so how would you do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor Kovacs</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-10557</link>
		<dc:creator>Victor Kovacs</dc:creator>
		<pubDate>Sat, 06 Mar 2010 02:44:31 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-10557</guid>
		<description>Thanks a Ton. Couldn&#039;t Find this Anywhere. Life Saver.
</description>
		<content:encoded><![CDATA[<p>Thanks a Ton. Couldn&#8217;t Find this Anywhere. Life Saver.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Janes</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-9713</link>
		<dc:creator>David Janes</dc:creator>
		<pubDate>Fri, 19 Feb 2010 19:11:54 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-9713</guid>
		<description>Use UIImageView to wrap the UIImage</description>
		<content:encoded><![CDATA[<p>Use UIImageView to wrap the UIImage</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kiki</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-9655</link>
		<dc:creator>Kiki</dc:creator>
		<pubDate>Wed, 17 Feb 2010 09:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-9655</guid>
		<description>thanks! that&#039;s exactly what i need!!

however, could you somehow explain to me how you managed to get UIImage into the UIScrollView? I so need that method, i want to apply it to my own app, exactly the same thing you did here...

thanks in advance!</description>
		<content:encoded><![CDATA[<p>thanks! that&#8217;s exactly what i need!!</p>
<p>however, could you somehow explain to me how you managed to get UIImage into the UIScrollView? I so need that method, i want to apply it to my own app, exactly the same thing you did here&#8230;</p>
<p>thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dav</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-8765</link>
		<dc:creator>Dav</dc:creator>
		<pubDate>Wed, 06 Jan 2010 02:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-8765</guid>
		<description>Thanks! This was exactly what I needed. You surely just saved me an hour at least of work.</description>
		<content:encoded><![CDATA[<p>Thanks! This was exactly what I needed. You surely just saved me an hour at least of work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Janes</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-8101</link>
		<dc:creator>David Janes</dc:creator>
		<pubDate>Tue, 08 Dec 2009 23:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-8101</guid>
		<description>You can easily create these on the fly - just make sure you always have the previous and the next one there so that scrolling is smooth. When you complete a scroll (detectable in delegate, probably) just relase the pages/images further than one away</description>
		<content:encoded><![CDATA[<p>You can easily create these on the fly &#8211; just make sure you always have the previous and the next one there so that scrolling is smooth. When you complete a scroll (detectable in delegate, probably) just relase the pages/images further than one away</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marc</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-8075</link>
		<dc:creator>marc</dc:creator>
		<pubDate>Mon, 07 Dec 2009 21:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-8075</guid>
		<description>Hi,

Do you mind explaining whether all of these pages are loaded and kept in memory or created on the fly. Looking at the code it seems that it&#039;s just making the pages once and showing them when needed. What happens if you try loading this with a hundred images?

I&#039;m pretty new to iPhone dev and memory management, I&#039;m curious to know if there&#039;s a way to dynamically create each page as it&#039;s being called for. For example in the case of a photo gallery app.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Do you mind explaining whether all of these pages are loaded and kept in memory or created on the fly. Looking at the code it seems that it&#8217;s just making the pages once and showing them when needed. What happens if you try loading this with a hundred images?</p>
<p>I&#8217;m pretty new to iPhone dev and memory management, I&#8217;m curious to know if there&#8217;s a way to dynamically create each page as it&#8217;s being called for. For example in the case of a photo gallery app.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Janes</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-7576</link>
		<dc:creator>David Janes</dc:creator>
		<pubDate>Mon, 16 Nov 2009 14:23:12 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-7576</guid>
		<description>I was just doing this as a proof of concept, so I probably just grabbed something I found and hacked it till I got a satisfactory result!</description>
		<content:encoded><![CDATA[<p>I was just doing this as a proof of concept, so I probably just grabbed something I found and hacked it till I got a satisfactory result!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-7518</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Sat, 14 Nov 2009 20:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-7518</guid>
		<description>I looked at the code and I was wondering why you choosed to load ScrollingViewController.xib through the appDelegate. Is this because through the ScrollingViewController isn&#039;t possible?</description>
		<content:encoded><![CDATA[<p>I looked at the code and I was wondering why you choosed to load ScrollingViewController.xib through the appDelegate. Is this because through the ScrollingViewController isn&#8217;t possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessign</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-7064</link>
		<dc:creator>Alessign</dc:creator>
		<pubDate>Wed, 28 Oct 2009 10:37:30 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-7064</guid>
		<description>I figured it out:

CGRect frame = window.frame;
	frame.origin = CGPointMake(0,20);
	window.frame = frame;</description>
		<content:encoded><![CDATA[<p>I figured it out:</p>
<p>CGRect frame = window.frame;<br />
	frame.origin = CGPointMake(0,20);<br />
	window.frame = frame;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessign</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-7041</link>
		<dc:creator>Alessign</dc:creator>
		<pubDate>Tue, 27 Oct 2009 10:28:36 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-7041</guid>
		<description>have a look here what it does:

http://olasz-ales.com/pic.html</description>
		<content:encoded><![CDATA[<p>have a look here what it does:</p>
<p><a href="http://olasz-ales.com/pic.html" rel="nofollow">http://olasz-ales.com/pic.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessign</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-7040</link>
		<dc:creator>Alessign</dc:creator>
		<pubDate>Tue, 27 Oct 2009 10:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-7040</guid>
		<description>Thanks it works, but it has little issue. in AppDelegate I have this code:

- (void)flipToMenu{
	
	viewController = [[MontgomeryPlaceViewController alloc] initWithNibName:nil bundle:nil];
			
	[cocktailView.view removeFromSuperview];
	[self.window addSubview:[viewController view]];
	[cocktailView release];
	cocktailView = nil;
	
}

------------and in pageControl using view this code----------

- (IBAction)goBack:(id)sender {
	MontgomeryPlaceAppDelegate *mainDelegate = (MontgomeryPlaceAppDelegate *)[[UIApplication sharedApplication] delegate];
	[mainDelegate flipToMenu];
	
}


---------

It works just fine but it leaves like 10px uncovered from previous view and you can still see half of UIPageControl unit. The white dots under current view. Any idea what that is?

Thanks again</description>
		<content:encoded><![CDATA[<p>Thanks it works, but it has little issue. in AppDelegate I have this code:</p>
<p>- (void)flipToMenu{</p>
<p>	viewController = [[MontgomeryPlaceViewController alloc] initWithNibName:nil bundle:nil];</p>
<p>	[cocktailView.view removeFromSuperview];<br />
	[self.window addSubview:[viewController view]];<br />
	[cocktailView release];<br />
	cocktailView = nil;</p>
<p>}</p>
<p>&#8212;&#8212;&#8212;&#8212;and in pageControl using view this code&#8212;&#8212;&#8212;-</p>
<p>- (IBAction)goBack:(id)sender {<br />
	MontgomeryPlaceAppDelegate *mainDelegate = (MontgomeryPlaceAppDelegate *)[[UIApplication sharedApplication] delegate];<br />
	[mainDelegate flipToMenu];</p>
<p>}</p>
<p>&#8212;&#8212;&#8212;</p>
<p>It works just fine but it leaves like 10px uncovered from previous view and you can still see half of UIPageControl unit. The white dots under current view. Any idea what that is?</p>
<p>Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Janes</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-6976</link>
		<dc:creator>David Janes</dc:creator>
		<pubDate>Sat, 24 Oct 2009 16:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-6976</guid>
		<description>I don&#039;t think dismissModalViewControllerAnimated is what you&#039;re looking for. Probably something like removeFromSuperview</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think dismissModalViewControllerAnimated is what you&#8217;re looking for. Probably something like removeFromSuperview</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessign</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-6972</link>
		<dc:creator>Alessign</dc:creator>
		<pubDate>Sat, 24 Oct 2009 12:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-6972</guid>
		<description>Thanks for the code - it helped me to solve my problem. Much easier than other samples. Anyway, I have a question about it. I added one &quot;view&quot; - menu (menuViewController) with button. The button is navigating to the &quot;scrollingViewController&quot; ....it works just fine, but I can not figure out how to navigate back to the &quot;menuViewController&quot; once the &quot;scrollingViewController is in view. I added another custom button to the &quot;scrollingViewController&quot; in layer above the UIPageControl so it&#039;s visible all the time when pages are swiping, but the action for it &quot;[self dismissModalViewControllerAnimated:NO];&quot; doesn&#039;t seems to be working. It crashes...can somebody give me little clue where to start to solve this problem please?

Thank you in advance</description>
		<content:encoded><![CDATA[<p>Thanks for the code &#8211; it helped me to solve my problem. Much easier than other samples. Anyway, I have a question about it. I added one &#8220;view&#8221; &#8211; menu (menuViewController) with button. The button is navigating to the &#8220;scrollingViewController&#8221; &#8230;.it works just fine, but I can not figure out how to navigate back to the &#8220;menuViewController&#8221; once the &#8220;scrollingViewController is in view. I added another custom button to the &#8220;scrollingViewController&#8221; in layer above the UIPageControl so it&#8217;s visible all the time when pages are swiping, but the action for it &#8220;[self dismissModalViewControllerAnimated:NO];&#8221; doesn&#8217;t seems to be working. It crashes&#8230;can somebody give me little clue where to start to solve this problem please?</p>
<p>Thank you in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Livid</title>
		<link>http://code.davidjanes.com/blog/2009/09/26/uipagecontrol-uiscrollview/comment-page-1/#comment-6402</link>
		<dc:creator>Livid</dc:creator>
		<pubDate>Mon, 28 Sep 2009 15:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://code.davidjanes.com/blog/?p=578#comment-6402</guid>
		<description>Thanks for your code. Have been thinking of this for a while.</description>
		<content:encoded><![CDATA[<p>Thanks for your code. Have been thinking of this for a while.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
