Adding the Twitter Framework

Updated on Mon, 2011-10-31 13:11

Overview

Starting with iOS5, Apple has added a Twitter Framework to iOS. With this Framework, you can easily leverage the power of Twitter for single sign-on, content personalization and content sharing. This document walks you through the simple process of adding Twitter to a new or existing project.

Apple's Documentation

For general iOS and XCode documentation, please refer to Apple's Developer Site. Apple's Developer Library contains, among many other outstanding articles, the following relevant topics:

Adding the Framework to your Application

To begin, open your application in XCode.

In the project explorer, select the target that you would like to link against Twitter.framework. In this example, the target name is TwitterExample.

Next, find the "Linked Frameworks and Libraries" module. You may have to expand the entry. Click the "+" sign to add a new Framework.

In the search field, enter "Twitter" and select the Twitter.Framework entry and click the "Add" button. Note that you may have to expand the "iOS 5.0" entry to see the framework.

You have now successfully added the framework to your project. If you encounter any problems, please raise a question in the Twitter API Discussion Forums.