Re: Trouble With NSURLSession...
Re: Trouble With NSURLSession...
- Subject: Re: Trouble With NSURLSession...
- From: Marco S Hyman <email@hidden>
- Date: Tue, 16 Jun 2015 19:56:51 -0700
> swift:20:26: Cannot find an initializer for type 'NSURLSession' that accepts an argument list of type '(configuration: NSURLSessionConfiguration, delegate: HSNDataManager.Type, delegateQueue: nil)’
You are passing “self” as the delegate in a *class* method. The class is
not a NSURLSessionDelegate?. Instances of the class are.
Marc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden