directory
directory

Reputation: 3167

Objective-c import function from AppDelegate not working

In my AppDelegate.m I've written a download data from url function. I am trying to receive the function into my bootController but it throws me te error. What am I missing?

No known class method for selector 'downloadDataFromURL:withCompletionHandler:'

enter image description here

enter image description here

Upvotes: 1

Views: 806

Answers (1)

KudoCC
KudoCC

Reputation: 6952

You should declare the method in its header.

+ (void)downloadDataFromUrl:(NSURL *)url withCompletionHandler:(void (^)(NSData *data))completionHandler;

Upvotes: 2

Related Questions