O'Reilly logo

Xcode 4 Cookbook by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Composing a tweet

In this recipe, we will look at how we can use the Twitter APIs for iOS 5 and interact with them effectively.

Getting ready

Twitter has provided us with some very simple APIs to follow, making it a snap to interact with them. In this recipe, we will look at how we can use these to post a tweet using the Twitter composition sheet.

How to do it…

In order to use Twitter within your application, we need to add the Twitter framework to your project. This can be achieved by performing the following simple steps:

  1. Select your project from within the project navigator.
  2. Then, select your project target from under the TARGETS group.
  3. Select the Build Phases tab.
  4. Expand the Link Binary with Libraries disclosure triangle.
Click on the + button and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required