문제

What is the best solution to swipe multiple UIviews ? In my app, I have multiple views (40 views) and I want to swipe between. With UIScrollView, I can use pagingEnabled but I'm afraid that memory exploses ! What is the trick to keep low memory ?

Thanks

도움이 되었습니까?

해결책 2

Depending on the type of look/feel you're going for you might want to take a look at:

  1. UICollectionView with a custom layout (http://www.raywenderlich.com/22324/beginning-uicollectionview-in-ios-6-part-12)
  2. UIPageViewController if each page is more complex (http://www.appcoda.com/uipageviewcontroller-tutorial-intro/)

다른 팁

Use UICollectionView docs here. UICollectionViewFlowLayout with UICollectionViewScrollDirectionHorizontal scrolling direction and full screen cell size will do the job. Don't use UITableView for horizontal paging.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top