简体   繁体   中英

iPhone - Page Scroll View Help, stop different views controllers allocation

Currently i have using the PageControl sample code of Apple, in this sample code all the time create new View Controller. Thats why the application memory issues and crash the application.

In my application there are 250 pages to display in paging.

Is there any way to create one or tow view controller and paging that views.

Please Help me..

Thanks in advance......

The apple's pageControl sample code will keep the current page, left un-visible page, and the right un-visible page. So it will new viewControllers, but I remember it will release other un-usable viewControllers to reduce the memory usage. The maximum viewControllers it keeps in the array are 3.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM