Get Updates By E-mail 

Article Written By:
Johann Dowa

iOS Tutorial: Maintain Performance With A Stack Of Table Views, Collection Views, or Scroll Views

  •  
  •  
  •  
  •  
  •  

Maintaining efficiency with multiple table views, collection views, and UIScrollViews is extremely difficult – typically performance will suffer or you’ll end up using a lot of memory.

Here’s a tutorial showing how to handle a stack of views, table views, collection views or a UIScrollView subclass vertically without losing performance or wasting memory submitted by Daniele Margutti along with a component called DMStackScrollView providing an efficient stack of scrollviews with some added features.

In the guide Daniele explains and shows how to implement an algorithm that allows your stack of scrollviews to remain performant, and outlines some other approaches that don’t work.

In the component Daniele provides a simple to use component for stacking your scrollviews, with added gesture based subview reordering and adding and removal of subviews.

You can find the guide over on Daniele’s blog.

You can find the DMScrollViewStack component <a href=”https://github.com/malcommac/DMScrollViewStack target=”_blank”>on Github here.

A nice guide and component for efficiently displaying a stack of scrollviews.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments