ios - UITableView stops updating content while scrolling through view? -


i have uitableview works fine , updates fine. have timer updates each uitableview label , progress view, when user scrolling table view stops updating/refreshing content (labels , progress view) in uitableview until done scrolling.

in addition content not updating have found when user scrolling entire app hangs. have 2 timers , put print statement in both, neither prints when user scrolling. have not been able find swift or swift 2 solution this.

this unrelated swift whatsoever.

you scheduled nstimer using default method, results in adding runloop in way it's not triggered while scrolling. need add main runloop nsrunloopcommonmodes mode instead.

e.g.

let timer = nstimer(timeinterval: 1.0, target: self, selector: #selector(update), userinfo: nil, repeats: false) nsrunloop.mainrunloop().addtimer(timer, formode: nsrunloopcommonmodes) 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -