iOS Question Threads

Discussion in 'iOS Questions' started by narek adonts, Apr 7, 2015.

  1. narek adonts

    narek adonts Well-Known Member Licensed User

    Hi,

    My app is processing a lot of images and it slow down the application a lot(mainly the animations that i am doing with timers).
    Anyway to make the image processing subs in a background thread ?

    Narek
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you testing it in release mode?
     
  3. narek adonts

    narek adonts Well-Known Member Licensed User

    Yes. And I am calling all the image porccesing sub with CallSubDelayed

    Narek
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    There is no simple way to execute the code on a background thread. Maybe it is possible to optimize your code and make it fast enough for the main thread.

    Also remember that you cannot access UI elements from background threads.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice