You can't update the UI asynchronously. If you're doing task asynchronously and want to update the UI you have to use dispatch_sync
.
And why would you when you're doing something asynchronously open another asynchronous task?
Next thing is that if you're only using DisplayString
in these two methods you might better add a NSString parameter to updateViewText
so you don't need the global variable.