nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
12k stars 2.58k forks source link

show views of controller from another storyboard correctly using iCarousel #808

Closed 6axter82 closed 7 years ago

6axter82 commented 7 years ago

Hi, I am using since couple of days this very nice pod. meanwhile I've got to solve the issue with showing only one card (which is wrong) from storyboard instead of all of them. Maybe you could have a look on it, thanks!

https://stackoverflow.com/questions/44541078/show-views-of-controller-from-another-storyboard-correctly-using-icarousel

saito-sv commented 7 years ago

You need to tell icarousel how many items to show. I think my default is only one. So on your options functions switch over it and on .VisableItmes return the amount of times to want to show

6axter82 commented 7 years ago

I think it is not the solution, at least it is not the whole one. I still see only one card. Maybe I have to instantiate the VC2 and put them into NSMutableArray in awakeFromNib so many times as many cards I would have.

6axter82 commented 7 years ago

I have refactored the code and am using the .xib file from which the view is loaded and reused.