mardi 12 juillet 2016

Getting the following error: This application is modifying the autolayout engine from a background thread


I get this warning with this code. I am checking in the background if an update is available. And then present an alert. Obviously Xcode and iOS don't like my thinking... any ideas?

  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), {

                if CheckAppUpdate().appUpdateAvailable("http://itunes.apple.com/lookup?id=xxxxxxxxxxxxx") == true {

                  self.showAlertForUpdate()
                }
            })

Aucun commentaire:

Enregistrer un commentaire