New to iOS app programming. There’s probably an easy fix, but I apparently don’t know it. The following is the code in question:
NSDictionary * headers = [NSHTTPCookie requestHeaderFieldsWithCookies:cookies];
[theRequest setAllHTTPHeaderFields:headers];
And this is the exception being thrown:
[NSURLRequest setAllHTTPHeaderFields:]: unrecognized selector sent to instance 0x1d82a7e0
Any help would be greatly appreciated! Please let me know if you need any further info.
You may need to use an NSMutableURLRequest instead of an NSURLRequest.