Use third party API using cocoaPod

Installing cocoaPod in iOS .

1. open terminal

2.type commond:  gem -v (it will show current gem version)

3. type command :: sudo gem update —system   (it will update gem to current version)

4.type command :: sudo gem install cocoapods

5. type command ::  pod setup

6.Browse to the root of your Xcode project and create a new Podfile by running touch Podfile

7. type command :: pod init

8. go to your project root folder , open pod file iw will be as

# Uncomment this line to define a global platform for your project

# platform :ios, ‘7.0’

target ‘learning’ do

pod “AFNetworking”, “~> 2.0”  // add this line to install afnetworking


target ‘learningTests’ do


9. close and save this file .

10. type command  on terminal ::  pod install


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

Up ↑

%d bloggers like this: