UIScrollView with Paging Enabled with separate .xibs?

381 Views Asked by At

I want to create a UIScrollView with Paging Enabled, however, I want to have three pages. Each page would be a separate Xib, though. Is this possible?

Also, is it possible to have have separate .h and .m files for each page, or is that just asking too much? Any help is appreciated.

2

There are 2 best solutions below

1
On

for you first question - try to check out that link:
http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html
for your second question - if your mean to different names,i think that really making mass and doesnt necessary, but anyway, the file's name doesnt really matter, just #import the right .h file.

0
On

This might help you: http://www.wannabegeek.com/?p=168

It has multiple view controllers, and you have to convert your project to use storyboard, but it works great!