Managing an Object’s Properties
Now that we’ve gone back and figured out how our object allocation and method calls work in the last chapter’s code, let’s put this knowledge to work and add some new functionality to the 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 ...
Get iOS 8 SDK Development, 2nd Edition 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.