Managing an Object’s Properties

Now that we’ve read up on the UI classes available to us, let’s start putting more of them to work in our app. Our original app lets us send a tweet, but there’s no way to tell if we were successful. We’ll gradually improve that throughout the next few chapters. For starters, let’s use iOS’s built-in web browser to bring up our Twitter page inside the app.

Adding a UIWebView

Select Main.storyboard to bring up the UI in Interface Builder. We’re going to add a Reload button at the top and a web view (a subview that renders web content) to fill up most of the bottom of our view. While we’re at it, we can get rid of the “I finished the first project” label; having a second button named Show My Tweets, with an active ...

Get iOS 9 SDK Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.