JSON parsing with POST parameters using AFNetworking 3.0
Step 1 : Search AFNetworking in github and install the AFNetworking in your project through cocoa pods .
- Go to terminal .
- Open your folder where you have created your project by simply writing cd location of your project. e.g.: cd /Users/SaurabhPc/Desktop/Saurabh
- Write pod init .
- After that write open -a Xcode Podfile in the terminal . This command will open projects pod file .
- Add the following command to add AFNewtorking pod to the project
pod 'AFNetworking', '~> 3.0'
6. write pod install to install the pod
After few minutes the pod will be added to your project
Step 2 : Open your project using workspace.
- #import <AFNetworking/AFNetworking.h> in your project.
- Now add the code to your viewDidLoad to hit web service.
thank you
ReplyDelete'
Hi sujananth
DeleteYour welcome & keep reading
Thank you 😃
Hi sujananth
DeleteYour welcome & keep reading
Thank you 😃
He He saurabh nice blog ,
ReplyDeletehave you update fro Swift 3.0.
thanks
Yes, Will upload soon.
DeleteThank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
ReplyDeleteios app development course
Thanks for this beautiful post IOS. It is really good for the beginners and I also liked the post.
ReplyDeleteIOS Training in Bangalore
IOS Training in Marathahalli
Thanks for sharing your valuable informationThanks for sharing your valuable information.
ReplyDeleteIOS App Development Training
IOS App Development Course
Broo
ReplyDeleteit gave me this error
Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)" UserInfo={NSLocalizedDescription=Request failed: bad request (400), NSUnderlyingError=0x600000257100 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: (null)" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: (null), NSErrorFailingURLKey=https://login.salesforce.com/services/oauth2/token, com.alamofire.serialization.response.error.data=<6572726f 723d756e 73757070 6f727465 645f6772 616e745f 74797065 26657272 6f725f64 65736372 69707469 6f6e3d67 72616e74 25323074 79706525 32306e6f 74253230 73757070 6f727465 64>, com.alamofire.serialization.response.error.response=