1

I have 2 scroll views. When click one of the buttons in the first Scroll view, some images related to this button will be retrieves from a plist and loaded into the second Scroll view.Is it possible to use something like "reloadData" between the 2 scroll views in iOS to keep the data loaded efficiently? Customers may click the buttons in the first Scroll view frequently, so we have to consider its efficiency and low system cost. Some sample code is appreciated. thanks!

4

1 回答 1

0

您只需简单地创建两个数组来保存两个滚动视图的数据并创建一个清空滚动视图并将所有数据再次添加到(两个)滚动视图中的方法,如果您想删除任何元素或数据,那么您可以从滚动视图中删除以及从保存该滚动视图数据的数组中删除,然后您只需调用该函数并重新加载您的滚动视图:-)

于 2012-12-04T13:02:39.233 回答