I am making a library to get response from a particular URL with specified data and method type. For this, I am making a request with url. But when I set its method type, it shows an exception of unrecognized selector send in [NSURLRequest setHTTPMethod:]
I am setting it as
[requestObject setHTTPMethod:@"GET"];
Tell me what could be the problem. Also provide me the code if you have.
Simply call and use:
Make sure your requestObject is of type
NSMutableURLRequest
.