MHPagingScrollView icon indicating copy to clipboard operation
MHPagingScrollView copied to clipboard

When numberOfPagesInPagingScrollView becomes Zero you still calling thePagingScrollView

Open ahmad-atef-zz opened this issue 10 years ago • 0 comments

I've used your control exactly like the tableview, I was calling the API, put the response in datasource array and reload MHPagingScrollView.

When you try the scenario to reload data when the datasource count was 4 (for example) then after updating the datasource and it was empty and reload MHPagingScrollView, you still calling thePagingScrollView (cell for row in tableview) even the numberOfPagesInPagingScrollView becomes zero, which will cause the application to crash or to behave incorrectly.

ahmad-atef-zz avatar Jun 19 '14 09:06 ahmad-atef-zz