今日からメモっていきます。
UINavigationBar がナビゲーションを行う
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
返り値に行数
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; } ... }
AppDelegate ファイルに配列とプロパティを定義、実装
最後にnil をセット
NSMutableArray *list; ... @property (nonatomic, copy, readonly) NSArray *list;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
...
}