IOS - UIRefreshControl Crash

If I “pull to refresh” my UITableViewController quick finger movement (instead of slow drag and drop), my application crashes with EXC_BAD_ACCESS (code=1, address=0x30000008) error EXC_BAD_ACCESS (code=1, address=0x30000008) .

Here is the relevant code:

 - (void)refreshView:(UIRefreshControl *)refresh { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self populateWhatsOn]; dispatch_async(dispatch_get_main_queue(), ^ { [self.refreshControl endRefreshing]; }); }); } 

Any help would be greatly appreciated!

+4
source share
1 answer

Check if populateWhatsOn properties also mentioned in endRefreshing . If so, create a separate queue and make any general changes to this queue.

-1
source

All Articles