x 個のセクションと x 個のセクションあたりの行を使用して、UITableView を設定しようとしています。
ただし、ビューの上部に単一の行を追加したいのUITableView
ですが、これをビューにハードコードする方法はありますか?
現在、NSdictionary に基づいて、セクションごとのセクション数と行数を返しています。
- (NSInteger)numberOfSectionsInTableView: (UITableView *)tableView
{
// Return the number of sections.
return [letterDictionary count];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
// returns the number of rows per section based off each entry in letterDictionary
currentLetter = [sectionLetterArray objectAtIndex:section];
return [[letterDictionary objectForKey:currentLetter] count];
}