We are finally at the stage of looking at the most exciting new feature in iOS 5 Twitter Integration in the iOS framework and how we can easily use the same in our app.
The Twitter framework in iOS 5 is pretty small and concise. It has just two main classes, and they are as follows:
The TWRequest
is synonymous with the Twitter HTTP API, where in you can make GET, POST, and DELETE API calls. These are operations that you can perform on behalf of the user. A Twitter request is made up of the API URL (identifying the actual action to perform), parameters, and the HTTP method (GET/POST). The initWithURL:parameters:requestMethod:
method of the Twitter framework in iOS 5 handles the Twitter request.
For our application, we are concerned with the TWTweetComposeViewController
class, as this class provides an easy to use Modal view controller object that makes Tweeting from within the app a breeze.