I have this purple warning: that shows after adding: lastLocationError = nil
//here’s the message
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first.
Here’s the method:
func updateLabels()
I don’t know how to remedy is message, any help would be great. Thx
The solution would be to implement the recommendation as per the waning But I can’t tell you offhand as to whether that will resolve the issue or not since there might be some other issue/warning which pops up at that point.
I’d have to try the solution myself to be sure. I’ll add this as something to be done for the next release of the book. Thanks!
As I mentioned previously, if it is causing unresponsiveness, please send me a zipped copy of the full project so that I can take a look. Also do note that there have been at least one if not two updates to Xcode since the book update. So whatever solution I provide would be for the current version of Xcode and might (or might not) work the same for the version of Xcode the book was written for.