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

Filling In the Table

Let’s think about how we’re going to go from this to a table of real tweets. Since the table can demand the contents of any row at any time, we’ll want to have a data structure representing all the tweets that we want to show in the table. This doesn’t have to be anything fancy; an array will do just fine.

But an array of what? Well, one approach would be to just create a class including the parts of a tweet we care about—its text, the screen name of the person who sent it, etc.—and then have an array of those objects. We haven’t had to create a new class of our own yet, so let’s do that.

Creating a ParsedTweet Class

To create a new class in our project, we use FileNew File (N), which causes a sheet to slide out showing ...

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