title: ios app design for a responsive UI
body: <p>I am a newbie in ios app development and have a general question about the design of apps regarding the responsiveness of the user interface. Should there always be a separate thread to deal with the UI stuff ? For example I am working on a simple game, that should detect swipe gestures at all times, other than that there is some work getting done constantly, like updating the screen with moving objects and animating them (there are no blocking calls though). The app generally works well but I have noticed that occasionally it doesn't detect a swipe gesture and was wondering if the cause is that I am doing everything in the main thread.</p>
  
  <p>Should I be handling the swipe gestures in the main thread and do everything else in a separate thread ? What about the animations, should each animation have its own thread as well ?
  And also what about run loops, is thread better in this case or a run loop ? (I am still confused where to use runloops even after reading some material about it online)</p>