Posts tagged as: nsarray

Objective-C Tutorial: NSArray

August 26th, 2009 Posted by: - posted under:Tutorials - 45 Comments

The NSArray is a huge workhorse that we use quite frequently without even thinking about it. The NSArray class isn’t just your ordinary array. Not only does it provide random access, but it also dynamically re-sizes when you add new objects to it. While I won’t go over every method in NSArray (there are quite a few), I will discuss some of the more important ones that are most commonly used. Let’s take a closer look at this class.


iPhone Programming Tutorial – Populating UITableView With An NSArray

August 8th, 2008 Posted by: - posted under:Tutorials - 327 Comments

The goal of this tutorial is to show you how to populate a UITableView with data from an array of objects. This will be the building block to display XML data as well as SQL data.
The theme of this application will be fruit. We will create an array of “fruit” objects that have some additional information besides the name. We will populate a UITableView with the names of the fruits. When the user selects a fruit …