سؤال

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