¡@

Home 

2014/10/15 ¤U¤È 10:10:46

iphone Programming Glossary: knumberofpages

Implementing UIScrollView programmatically

http://stackoverflow.com/questions/8909347/implementing-uiscrollview-programmatically

placeholders which will be replaced on demand NSMutableArray controllers NSMutableArray alloc init for unsigned i 0 i kNumberOfPages i controllers addObject NSNull null self.viewControllers controllers controllers release a page is the width of the scroll.. width of the scroll view scrollView.pagingEnabled YES scrollView.contentSize CGSizeMake scrollView.frame.size.width kNumberOfPages scrollView.frame.size.height scrollView.showsHorizontalScrollIndicator NO scrollView.showsVerticalScrollIndicator NO scrollView.scrollsToTop.. NO scrollView.scrollsToTop NO scrollView.delegate self pageControl.numberOfPages kNumberOfPages pageControl.currentPage 0 pages are created on demand load the visible page load the page on either side to avoid flashes..