O'Reilly logo

iOS 8 SDK Development, 2nd Edition by Janie Clayton, Chris Adamson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required