swift - Program that will run continuously without any condition -


i want write code in swift in xcode, should has button function , others, code should has function, run continuously without condition. there chance this?

if want code run continuously might want loop (as in while-loop) runs in background thread don't block ui. everytime ui should update, have dispatch changing activities ui-thread.

for general tutorial swift-multithreading refer https://www.raywenderlich.com/148513/grand-central-dispatch-tutorial-swift-3-part-1


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -