Quantcast
Viewing all articles
Browse latest Browse all 26

ListView mixes up layout after template switch in app ?

I have a listView with some items (json feed as source). I also have 2 templates which determine the layout of the items. The idea is that a user can switch from layout 1 to layout 2 (big items, small items).

On initial load the listView looks perfect. But when I want to reload the listView with a new template, things are getting weird. The templates seem to be mixing up. I've made a demo that demonstrates the issue.

Demo; https://www.youtube.com/watch?v=bPRfJFU7zrI

Screenshot: http://nl.tinypic.com/r/2eldo9t/8

My code (partially): http://pastebin.com/1ytxa0uX

I've tried clearing the listView, nulling the section etc. Without luck.

Anyone got a good idea?

Platform: iOS SDK: 3.2.3GA


Viewing all articles
Browse latest Browse all 26

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>