Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings #4

Open
danielsefton opened this issue Oct 16, 2023 · 0 comments
Open

Fix warnings #4

danielsefton opened this issue Oct 16, 2023 · 0 comments

Comments

@danielsefton
Copy link

- (void) checkNow {
// ...
if ([NSURLConnection connectionWithRequest: [NSURLRequest requestWithURL: url] delegate: self] == nil) {

'connectionWithRequest:delegate:' is deprecated: first deprecated in iOS 9.0 - Use NSURLSession (see NSURLSession.h)

- (void) checkNow {
// ...
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;

-[UIApplication setNetworkActivityIndicatorVisible:] must be used from main thread only

- (void) connection: (NSURLConnection*) connection didReceiveData: (NSData*) data {
// ...
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;

'networkActivityIndicatorVisible' is deprecated: first deprecated in iOS 13.0 - Provide a custom network activity UI in your app if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant