Hi,
Can any iOS devs help me with this?
I'm downloading and parsing a JSON feed on a button press. This button also loads the next view (via a storyboard segue)
I'm getting an error about a thread other than the main one trying to update the UI - I'm assuming that this is because I'm using a secondary thread to download and parse the file and then the UI change also occurs in the secondary thread.
How can I force the UI change to occur in the main thread? The button has to control both actions (downloading/parsing the file and the UI change) as a parameter for the JSON download is created using a text box value on the same view.
Thanks!
Can any iOS devs help me with this?
I'm downloading and parsing a JSON feed on a button press. This button also loads the next view (via a storyboard segue)
I'm getting an error about a thread other than the main one trying to update the UI - I'm assuming that this is because I'm using a secondary thread to download and parse the file and then the UI change also occurs in the secondary thread.
How can I force the UI change to occur in the main thread? The button has to control both actions (downloading/parsing the file and the UI change) as a parameter for the JSON download is created using a text box value on the same view.
Thanks!