Note that there are some explanatory texts on larger screens.

plurals
  1. POECSlidingViewController freezes UIRefreshControl
    primarykey
    data
    text
    <p>I'm using ECSlidingViewController in my app. I have a View Controller with a UITableView in it, which uses a UIRefreshControl to execute a long task. When I pull down to refresh, the refresh control starts animating normally but when I go to the top view controller (my main menu in this case) and then go back to my view controller, the refreshControl freezes completely until the task is completed.</p> <p>To make it clearer, these are the steps I follow:</p> <ol> <li>Pull down my tableView to refresh it.</li> <li><p>A long task is executed on background, like:</p> <pre><code>- (void)pulledToRefresh:(UIRefreshControl *)refreshControl { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{ long long a = 0; for (long long i = 0; i &lt; 100000000000; i++) { a++; } dispatch_async(dispatch_get_main_queue(), ^{ [refreshControl endRefreshing]; }); }); } </code></pre></li> <li><p>While the refresh control is animating, I <strong>slide</strong> (I <strong>don't</strong> call the <code>resetTopView:animated:</code> method or any of those ones, I just make a pan gesture) my current view controller to the right to show my Main Menu. When this happens, the refresh control suddenly stops animating (it freezes).</p></li> <li><p>I go back to the view controller I was using at first but it remains frozen.</p></li> <li><p>The task completes and the refresh control ends the refresh naturally, removing itself from my tableView with a nice animation.</p></li> </ol> <p>Any idea why this happens?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload