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 s
NSArrayクラス Objective-Cの最も基本的な配列クラスは「NSArray」です。このクラスは、一度生成すると中身を変更することはできません。以下に、NSArrayの利用例を示します。 #import <Foundation/Foundation.h> int main(void) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; //(1)配列の生成 NSArray *array = [NSArray arrayWithObjects:@"abc", @"def", @"ghi", @"jkl", nil]; //(2)配列の要素数を取得 int arrCount = [array count]; //(3)配列の要素を取り出す id obj01 = [array objectAtIndex:2]; i
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く