質問

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