Closed batjo closed 6 years ago
When I change
if UIApplication.responds(to: NSSelectorFromString("shared")) { (UIApplication.value(forKeyPath: "shared") as? UIApplication)?.isNetworkActivityIndicatorVisible = (self.activitiesCount > 0) }
To
if UIApplication.responds(to: NSSelectorFromString("sharedApplication")) { (UIApplication.value(forKeyPath: "sharedApplication") as? UIApplication)?.isNetworkActivityIndicatorVisible = (self.activitiesCount > 0) }
it works. Not sure why since it's UIApplication.shared and not UIApplication.sharedApplication
UIApplication.shared
UIApplication.sharedApplication
Thanks @batjo!
When I change
To
it works. Not sure why since it's
UIApplication.shared
and notUIApplication.sharedApplication