iphone Programming Glossary: centerindex
Optimized Image Loading in a UIScrollView http://stackoverflow.com/questions/1098234/optimized-image-loading-in-a-uiscrollview the scrolling is less jerky. void scrollViewDidScroll UIScrollView scrollView self manageThumbs void manageThumbs int centerIndex self centerThumbIndex if lastCenterIndex centerIndex return if centerIndex totalThumbs return NSRange unloadRange NSRange.. UIScrollView scrollView self manageThumbs void manageThumbs int centerIndex self centerThumbIndex if lastCenterIndex centerIndex return if centerIndex totalThumbs return NSRange unloadRange NSRange loadRange int totalChange lastCenterIndex centerIndex.. self manageThumbs void manageThumbs int centerIndex self centerThumbIndex if lastCenterIndex centerIndex return if centerIndex totalThumbs return NSRange unloadRange NSRange loadRange int totalChange lastCenterIndex centerIndex if totalChange 0 scrolling..
|