Book Image

iPhone Location Aware Apps by Example - Beginner's Guide

By : Zeeshan Chawdhary
Book Image

iPhone Location Aware Apps by Example - Beginner's Guide

By: Zeeshan Chawdhary

Overview of this book

<p>From weather apps which give you a forecast based on your current location to fitness apps which track your speed and distance travelled. From Google Maps to Foursquare. Increasing mobility and social networking has made location awareness an integral aspect of modern iPhone applications. <br /><br />This book will teach you everything you need to know about building iPhone location aware apps, from simple Google maps to complex region monitoring and augmented reality. Build five real world location aware apps and get a taste of HTML5-based mobile app development.<br /><br />The book begins by explaining behind-the-scenes working of location-based systems, including GPS. Explore in depth iOS Core Location and the MapKit Framework, using examples depicting each capability of the respective frameworks. Having learnt about location and maps, you will build five location-based apps using the APIs and SDKs publicly available. The book has everything for a beginner as well as advanced users, with chapters devoted to advanced topics such as push notifications, geo fencing and augmented reality.</p>
Table of Contents (17 chapters)
iPhone Location Aware Apps by Example
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Using the Twitter framework


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:

  • TWRequest.

  • TWTweetComposeViewController.

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.