开发者

UIScrollView with Paging Enabled with separate .xibs?

开发者 https://www.devze.com 2023-02-08 06:24 出处:网络
开发者_如何转开发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?
开发者_如何转开发

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.


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.


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消