Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

10. Social Governance — TweetGovern > Time for action — detecting the user loca...

Time for action — detecting the user location and showing nearby issues

We begin adding location support in our app and quickly showing nearby issues by querying the Twitter timeline.

  1. We modify our project by incorporating a Navigation Controller in our main UI flow. This is done in the Interface Builder, by dragging a UINaviationController object from the Object Library. This helps us control the application navigation flow easily.
  2. Connect a segue from the Navigation Controller to the home screen UIViewController, by control dragging your mouse pointer from the Navigation Controller to the home screen View, and selecting Relationship rootViewController from the pop-up menu.
    Time for action — detecting the user location and showing nearby issues
  3. On the home View UI (First View Controller), name the view controller as Home, and the identifier as home. We will need these View identifier names later on to call each View on demand.

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial