Monday, 11 April 2016

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 .

  1.  Go to terminal .
  2.  Open your folder where you have created your project by simply writing cd location of your project. e.g.: cd /Users/SaurabhPc/Desktop/Saurabh 
  3.  Write pod init 
  4. After that write open -a Xcode Podfile in the terminal . This command will open projects pod file .
  5. 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.
  1.  #import <AFNetworking/AFNetworking.h> in your project.
  2. Now add the code to your viewDidLoad to hit web service.


For more post on AFNewtorking visit JSON parsing using AFNetworking

Thankyou :)



7 comments:

  1. Replies
    1. Hi sujananth

      Your welcome & keep reading

      Thank you 😃

      Delete
    2. Hi sujananth

      Your welcome & keep reading

      Thank you 😃

      Delete
  2. He He saurabh nice blog ,
    have you update fro Swift 3.0.

    thanks

    ReplyDelete
  3. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    ios app development course

    ReplyDelete
  4. Thanks for this beautiful post IOS. It is really good for the beginners and I also liked the post.
    IOS Training in Bangalore
    IOS Training in Marathahalli

    ReplyDelete