SwipeView icon indicating copy to clipboard operation
SwipeView copied to clipboard

Extra built-in methods invoked during SwipeView creation.

Open TXF opened this issue 12 years ago • 0 comments

I changed iCarousel to SwipeView and the grid became looking properly.

But I've noticed some strange behaviour concerned with 2 interconnected methods in SwipeView:

1)- (NSInteger)numberOfItemsInSwipeView:(SwipeView *)swipeView; 2) - (UIView *)swipeView:(SwipeView *)swipeView viewForItemAtIndex:(NSInteger)index reusingView:(UIView *)view;

My problem relates to these methods are invoked twice. It looks like 2 subsequent [someTableView reloadData] (if it was in case of UITableView). Before writing you I've checked all my code once again to be definitely sure. I do not confident if this second "reload" exactly need or it's a kind of a bug. Moreover I created a new clear project and added there your SwipeView and set 2 breakpoints in each of methods. Outcome: 2 invocations. Your Code sets number of Views in the grid and then creates each of view gradually. When the last view is ready, code "jumps" into numberOfItemsInSwipeView and performs all the work once again.

I'd be very appreciate for you If you could help me with that hindrance

TXF avatar May 15 '13 13:05 TXF