The Goal — On an iPhone, to browse through several hundred locally-stored jpgs using a UI开发者_StackOverflow社区ScrollView.
The Problem — Like many others before me, I've tried implementing a scroll view based on Apple's Page Control sample code and found it lacking. The biggest issue I'm currently up against is that the sample code's architecture doesn't seem to scale. With just a few images loaded from disk, everything's fine. Once the number of images gets into the dozens, though, scrolling suffers terribly: the scrollview stutters mid-scroll with each new swipe.
The only code I've toyed with that comes even close to being reasonably responsive is Three20, but even there the performance doesn't hold a candle to Photos.
For now, I'm just using Three20, but a faster, custom solution would definitely be preferable.
Have you tried using the cover flow example, it is pretty easy to use and seems to have good performance. I haven't tried it for 100's of images but it could be worth a shot or at least give some ideas.
精彩评论