<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-371408380585915800.post804840528352435764..comments</id><updated>2011-11-27T04:10:16.241-08:00</updated><category term='C++'/><category term='self promotion'/><category term='code management'/><category term='Lion'/><category term='UIKit'/><category term='CoreAudio'/><category term='Cocoa Touch'/><category term='Xcode'/><category term='fun hacks'/><category term='CoreGraphics'/><category term='Objective-C'/><category term='Standard C'/><category term='graphics'/><category term='performance tests'/><category term='Core Data'/><category term='Foundation'/><category term='object-oriented design'/><category term='testing'/><category term='numerical methods'/><category term='WebKit'/><category term='CoreAnimation'/><category term='Snow Leopard'/><category term='AppKit'/><title type='text'>Comments on Cocoa with Love: Multiple virtual pages in a UIScrollView with just...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cocoawithlove.com/feeds/804840528352435764/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html'/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-8134691631480387719</id><published>2011-11-27T04:10:16.242-08:00</published><updated>2011-11-27T04:10:16.242-08:00</updated><title type='text'>Hi Matt, great stuff you write, Thanks a lot. It h...</title><content type='html'>Hi Matt, great stuff you write, Thanks a lot. It has come very handy.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve some problems in iOS5 with the code, apparently the contentOffset for the pages is not right! and it snaps to the middle of a page instead of placing it in the center.&lt;br /&gt;&lt;br /&gt;I was looking for example codes like this because my problem is kind of similar in iOS5.&lt;br /&gt;&lt;br /&gt;I have a ScrollView with several virtual pages that are returned by the datasource and the UX must be the next:&lt;br /&gt;&lt;br /&gt;- When the user scrolls should be able to scroll with pagination disabled. This allows to navigate through the pages very fast.&lt;br /&gt;- When the scrollview starts decelerating the pagination must be enabled in order to place the must visible page into the center of the screen.&lt;br /&gt;- If the user drags the scroll and no deceleration occurs the pagination must be enabled in order to place the must visible page into the center of the screen. (When the user drags the scrollview the scroll is insanely fast, and this only happens in iOS5 not in iOS4).&lt;br /&gt;&lt;br /&gt;I&amp;#39;m still unable to find out what&amp;#39;s wrong although I&amp;#39;ve been playing with the UIScrollViewDelegate methods.&lt;br /&gt;&lt;br /&gt;I hope you have an idea on how to fix this.&lt;br /&gt;&lt;br /&gt;Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/8134691631480387719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/8134691631480387719'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1322395816242#c8134691631480387719' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-1411395240842971254</id><published>2011-10-02T22:18:43.936-07:00</published><updated>2011-10-02T22:18:43.936-07:00</updated><title type='text'>Nice Tutorial Really...Please discuss such kind of...</title><content type='html'>Nice Tutorial Really...Please discuss such kind of topics on regular basis.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/1411395240842971254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/1411395240842971254'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1317619123936#c1411395240842971254' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-5895816444141860266</id><published>2010-12-22T02:53:50.000-08:00</published><updated>2010-12-22T02:53:50.000-08:00</updated><title type='text'>Hi Matt,

Just wanted to state that your code abov...</title><content type='html'>Hi Matt,&lt;br /&gt;&lt;br /&gt;Just wanted to state that your code above does not work anymore on iOS4.2.&lt;br /&gt;I just downloaded your code and opened it up in my XCode, to see how this works, and well I&amp;#39;m somehow able to scroll to a page, then it just flicks through to the next one, or it stops halfway a page.&lt;br /&gt;Dunno if this was the same on iOS 3, but it works partially now.&lt;br /&gt;&lt;br /&gt;If this was intended somehow, I&amp;#39;m sorry for bringing this up!&lt;br /&gt;&lt;br /&gt;If I&amp;#39;m able to fix this behaviour I will get back to you!&lt;br /&gt;&lt;br /&gt;- B</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/5895816444141860266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/5895816444141860266'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1293015230000#c5895816444141860266' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-7678226786302295787</id><published>2010-12-07T02:41:35.000-08:00</published><updated>2010-12-07T02:41:35.000-08:00</updated><title type='text'>Hi Matt,

Thanks a lot Matt!

I have using this sa...</title><content type='html'>Hi Matt,&lt;br /&gt;&lt;br /&gt;Thanks a lot Matt!&lt;br /&gt;&lt;br /&gt;I have using this sample code in our application but need some help,&lt;br /&gt;in my application need direct load 3rd page 10th page so how can i load any page from start.&lt;br /&gt;&lt;br /&gt;Please help me.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/7678226786302295787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/7678226786302295787'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1291718495000#c7678226786302295787' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-5537422340162619358</id><published>2010-11-30T08:04:12.000-08:00</published><updated>2010-11-30T08:04:12.000-08:00</updated><title type='text'>Reading Arek&amp;#39;s comment above. I&amp;#39;ve found i...</title><content type='html'>Reading Arek&amp;#39;s comment above. I&amp;#39;ve found it works if you enable scrolling in the UITextView but nothing else. Odd.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/5537422340162619358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/5537422340162619358'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1291133052000#c5537422340162619358' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-4533665247625521540</id><published>2010-11-30T08:00:17.000-08:00</published><updated>2010-11-30T08:00:17.000-08:00</updated><title type='text'>bit more info. It is actually this line that makes...</title><content type='html'>bit more info. It is actually this line that makes it go weird&lt;br /&gt;textView.text = [pageData objectForKey:@&amp;quot;pageText&amp;quot;];&lt;br /&gt;&lt;br /&gt;so the label is fine but the UITextView setText makes everything go weird.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4533665247625521540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4533665247625521540'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1291132817000#c4533665247625521540' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-8501442695616134148</id><published>2010-11-30T07:58:12.000-08:00</published><updated>2010-11-30T07:58:12.000-08:00</updated><title type='text'>Bizarrely it works ok (except the text isn&amp;#39;t u...</title><content type='html'>Bizarrely it works ok (except the text isn&amp;#39;t updated obviously) if I comment out these two lines&lt;br /&gt;&lt;br /&gt;  label.text = [pageData objectForKey:@&amp;quot;pageName&amp;quot;];&lt;br /&gt;  textView.text = [pageData objectForKey:@&amp;quot;pageText&amp;quot;];</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/8501442695616134148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/8501442695616134148'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1291132692000#c8501442695616134148' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-6026997697825597230</id><published>2010-11-30T07:08:21.000-08:00</published><updated>2010-11-30T07:08:21.000-08:00</updated><title type='text'>I downloading the sample but I am finding that the...</title><content type='html'>I downloading the sample but I am finding that the pages are always off center. Has something changed that has broken this?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/6026997697825597230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/6026997697825597230'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1291129701000#c6026997697825597230' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-4119904703646558059</id><published>2010-11-16T04:31:23.000-08:00</published><updated>2010-11-16T04:31:23.000-08:00</updated><title type='text'>Dear Matt
is possible update to Xcode 3.2 and IOS4...</title><content type='html'>Dear Matt&lt;br /&gt;is possible update to Xcode 3.2 and IOS4, i have tried but only play 2 pages, or some one can help me to run this sample in this xcode version. best regards and thank you for your attention&lt;br /&gt;Fredy ASencios&lt;br /&gt;freddy@pixel.pe</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4119904703646558059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4119904703646558059'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1289910683000#c4119904703646558059' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-8940447570981172696</id><published>2010-11-05T02:06:53.000-07:00</published><updated>2010-11-05T02:06:53.000-07:00</updated><title type='text'>Great Project Matt. Kudos. Would you say that ther...</title><content type='html'>Great Project Matt. Kudos. Would you say that there Is enough of a memory footprint difference between this approach and the array based approach? (assuming that un-unsed views are destroyed when not in scope)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/8940447570981172696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/8940447570981172696'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1288948013000#c8940447570981172696' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-2928449892042633211</id><published>2010-08-25T15:05:33.000-07:00</published><updated>2010-08-25T15:05:33.000-07:00</updated><title type='text'>I had the same problem, couldn&amp;#39;t find a soluti...</title><content type='html'>I had the same problem, couldn&amp;#39;t find a solution. Then, I&amp;#39;ve turned on user interaction and vertical scrolling for textview in interface builder, tried... it works flawless! &lt;br /&gt;&lt;br /&gt;Thanks a lot for tutorial, it saved my life ;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/2928449892042633211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/2928449892042633211'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1282773933000#c2928449892042633211' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-440850503333671019</id><published>2010-08-03T10:24:22.000-07:00</published><updated>2010-08-03T10:24:22.000-07:00</updated><title type='text'>Thanks a lot Matt! I really appreciate your help. ...</title><content type='html'>Thanks a lot Matt! I really appreciate your help. However now there is a going to be a problem I want to post something on the textView.text.Anyway, I was wondering if textView goes off the limits or something. It is weird. Once again thanks a lot!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/440850503333671019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/440850503333671019'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1280856262000#c440850503333671019' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-6929968608879929825</id><published>2010-08-02T20:41:15.000-07:00</published><updated>2010-08-02T20:41:15.000-07:00</updated><title type='text'>In iOS4, there seems to be a weird conflict betwee...</title><content type='html'>In iOS4, there seems to be a weird conflict between the UITextView that shows the &amp;quot;Some text for page X&amp;quot; message and the UIScrollView that handles the paging.&lt;br /&gt;&lt;br /&gt;If you comment out like 35 of PageViewController.m (the line that sets the textView.text) then the weird offset will go away.&lt;br /&gt;&lt;br /&gt;Why is this happening? I have no idea. If I find out, I&amp;#39;ll update the project.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/6929968608879929825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/6929968608879929825'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1280806875000#c6929968608879929825' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-8508061800396651441</id><published>2010-08-02T18:44:51.000-07:00</published><updated>2010-08-02T18:44:51.000-07:00</updated><title type='text'>Hi everybody! This tutorial was a great help for m...</title><content type='html'>Hi everybody! This tutorial was a great help for me. However I would like to know if you guys have any problem with the scrolling. What happens is when I scroll the page view instead of stopping to the next page it moves to the space between two consecutive pages. Does anyone have witness something similar? I run iOS 4.0. It happens both on simulator and on device. Please let me know.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/8508061800396651441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/8508061800396651441'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1280799891000#c8508061800396651441' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-2523750229910877186</id><published>2010-06-25T04:35:39.000-07:00</published><updated>2010-06-25T04:35:39.000-07:00</updated><title type='text'>I need to have some dostance between pages. Is it ...</title><content type='html'>I need to have some dostance between pages. Is it possible to do with your code?&lt;br /&gt;&lt;br /&gt;[p1]  [p2] [p3]&lt;br /&gt;&lt;br /&gt;Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/2523750229910877186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/2523750229910877186'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1277465739000#c2523750229910877186' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-6372679661820022683</id><published>2010-05-26T02:47:17.000-07:00</published><updated>2010-05-26T02:47:17.000-07:00</updated><title type='text'>Matt!

U R D Best!</title><content type='html'>Matt!&lt;br /&gt;&lt;br /&gt;U R D Best!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/6372679661820022683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/6372679661820022683'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1274867237000#c6372679661820022683' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-4692862477720997335</id><published>2010-05-25T09:08:56.000-07:00</published><updated>2010-05-25T09:08:56.000-07:00</updated><title type='text'>Guest 
Matt: 
 
Thanks for sharing, I have been lo...</title><content type='html'>Guest &lt;br /&gt;Matt: &lt;br /&gt; &lt;br /&gt;Thanks for sharing, I have been looking for a similar project for a while.  &lt;br /&gt; &lt;br /&gt;I changed the project to add a UITableView in a page which has 4 UITableViewCells. However, when the user selects a cell in the first page, the same cell gets selected in the third page which is not the effect I want. I want the cell in the first page to stay selected while the third page has no cells selected. If I programatically refresh the cell (similar to your updateTextViews method), the refresh happens both in the first and third page and the cell in first page gets unselected. &lt;br /&gt; &lt;br /&gt;Is there any way I can achieve the above functionality in your project with just 2 pages? I think the &amp;quot;two page&amp;quot; approach will significantly save some memory in my app. &lt;br /&gt; &lt;br /&gt;Thanks for your help, &lt;br /&gt;Amy&lt;br /&gt;&lt;br /&gt;-------&lt;br /&gt;&lt;br /&gt;How did you manage to get the tableview to refresh at all?&lt;br /&gt;&lt;br /&gt;Thanks in advance</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4692862477720997335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4692862477720997335'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1274803736000#c4692862477720997335' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-3752552156474174183</id><published>2010-05-19T10:58:22.000-07:00</published><updated>2010-05-19T10:58:22.000-07:00</updated><title type='text'>Hey Elia,

Did you get the rotation thing working ...</title><content type='html'>Hey Elia,&lt;br /&gt;&lt;br /&gt;Did you get the rotation thing working well? Would you have a code to share? &lt;br /&gt;&lt;br /&gt;What I would actually love to accomplish is to switch the portrait image for a landscape version when the device is rotated. &lt;br /&gt;&lt;br /&gt;Thanks, &lt;br /&gt;Kris.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/3752552156474174183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/3752552156474174183'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1274291902000#c3752552156474174183' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-4368394866337437393</id><published>2010-05-14T09:49:29.000-07:00</published><updated>2010-05-14T09:49:29.000-07:00</updated><title type='text'>Matt,
Thanks, this is very helpful for an app I am...</title><content type='html'>Matt,&lt;br /&gt;Thanks, this is very helpful for an app I am developing.  One question. Any thoughts on wrap around?   It seems like it would be easy to add a wrap to your concept.   I&amp;#39;d like it to work like the lower scroll view in the stocks app where swiping off the leftmost view brings one to the rightmost view and vice versa.   &lt;br /&gt;&lt;br /&gt;Thanks, Jeff</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4368394866337437393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4368394866337437393'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1273855769000#c4368394866337437393' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-753126906870289454</id><published>2010-05-13T08:44:04.000-07:00</published><updated>2010-05-13T08:44:04.000-07:00</updated><title type='text'>Looks like I am answering my own question. On rota...</title><content type='html'>Looks like I am answering my own question. On rotation, it looks like the scroll view does not readjust its contentSize property. I didn&amp;#39;t want to change your code so left your contentSize assignment in viewDidLoad as you have it. Then added:&lt;br /&gt;&lt;br /&gt;- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {&lt;br /&gt; scrollView.contentSize = CGSizeMake(scrollView.contentSize.width, scrollView.frame.size.height);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;and called it from viewDidAppear as well to adjust on entry into the view. (I don&amp;#39;t think I could call this from viewDidLoad as the view wouldn&amp;#39;t know its dimensions until after it appeared.) I am sure I could make this cleaner but it works.&lt;br /&gt;&lt;br /&gt;I should also note that I had the struts wrong from my previous comment. Scroll View should have all springs and struts set. I also have only left-right and horizontal spring set for TextView (although my final set up is slightly different than your example so you may have to play with your example to get all these right.)&lt;br /&gt;&lt;br /&gt;Hope this helps someone else.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/753126906870289454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/753126906870289454'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1273765444000#c753126906870289454' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-4079548038901196519</id><published>2010-05-12T19:41:46.000-07:00</published><updated>2010-05-12T19:41:46.000-07:00</updated><title type='text'>Matt, I am hoping you can help. I played with your...</title><content type='html'>Matt, I am hoping you can help. I played with your sample code and was successfully able to implement it in portrait mode. I am not, however, able to adjust it so it rotates correctly to landscape mode. It seems that everything works fine as I am playing with it in IB but when I compile and put it on a device, I can scroll in all four directions in landscape, as if the page doesn&amp;#39;t resize correctly.&lt;br /&gt;&lt;br /&gt;I added the following to PagingScrollViewController:&lt;br /&gt;- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {&lt;br /&gt;  return YES;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I set the struts and springs for MainWindow/PagingScrollViewController as follows:&lt;br /&gt;- View: all set&lt;br /&gt;- Scroll View: all but bottom strut set&lt;br /&gt;- Page Control: left, right and bottom strut, horizontal spring&lt;br /&gt;&lt;br /&gt;I set the struts and springs for PageView as follows:&lt;br /&gt;- View: all set&lt;br /&gt;- TextView: all set&lt;br /&gt;- Label: all but vertical spring set&lt;br /&gt;&lt;br /&gt;Can you offer any help or an adjustment to the source code that would make landscape work correctly? I sure would appreciate it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4079548038901196519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/4079548038901196519'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1273718506000#c4079548038901196519' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry><entry><id>tag:blogger.com,1999:blog-371408380585915800.post-5284383337030351179</id><published>2010-04-12T08:51:01.000-07:00</published><updated>2010-04-12T08:51:01.000-07:00</updated><title type='text'>I&amp;#39;ve used this tutorial to write those librari...</title><content type='html'>I&amp;#39;ve used this tutorial to write those libraries ... it&amp;#39;s a pre-programmed UIScrollView for horizontal and vertical display ... try to download this project from SVN repo. I&amp;#39;ve been unable to finish the documentation but check out IGUIScrollViewElements ... there is a short example for IGUIScrollViewImage and the code is quite similar ... I&amp;#39;ll do my best to finish examples for the remaining ones asap ...&lt;br /&gt;&lt;br /&gt;http://code.google.com/p/iphone-guru-uilibrary/&lt;br /&gt;&lt;br /&gt;----------------------------------------&lt;br /&gt;&lt;br /&gt;iPhone tutorial project on http://www.xprogress.com</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/5284383337030351179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/371408380585915800/804840528352435764/comments/default/5284383337030351179'/><link rel='alternate' type='text/html' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html?showComment=1271087461000#c5284383337030351179' title=''/><author><name>Matt Gallagher</name><uri>http://www.blogger.com/profile/12617910364694969282</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html' ref='tag:blogger.com,1999:blog-371408380585915800.post-804840528352435764' source='http://www.blogger.com/feeds/371408380585915800/posts/default/804840528352435764' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-475684210'/></entry></feed>
