objective c - How to specify Restkit object manager to perform a POST -


i trying send post request using ios restkit. can perform get, cannot find how send post.

my current code looks following:

rkurl *url = [rkurl urlwithbaseurl:[objectmanager baseurl] resourcepath:@"/users/sign_in.json" queryparameters:params]; [objectmanager loadobjectsatresourcepath:[nsstring stringwithformat:@"%@?%@", [url resourcepath], [url query]] delegate:self]; 

apparently, performs get. idea should add make post?

thanks!

to answer question (regardless of above discussion) can following:

[objectmanager loadobjectsatresourcepath: @"path" usingblock: ^(rkobjectloader *loader) { loader.httpmethod = rkrequestmethodpost; }]; 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -