Reputation: 3167
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:'
Upvotes: 1
Views: 806
Reputation: 6952
You should declare the method in its header.
+ (void)downloadDataFromUrl:(NSURL *)url withCompletionHandler:(void (^)(NSData *data))completionHandler;
Upvotes: 2