我拉從xml數據所以是可能的,以顯示他們組?顯示錶格視圖數據分組在iphone上
我現在沒有plsit現在我顯示數據就像簡單,所以現在我想通過什麼應該是方法/概念組?
我做了這樣的事情,但沒有運氣
d O I需要做一些排序?像使用NSSortDescriptor ****
如果是的話那麼在viewdidload或cellforrowatindxpath??
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//UITableView *tableView;
UITableViewCell *cell;
static NSString *CellIdentifier = @"Cell";
**Book *aBook = [appDelegate.books objectAtIndex:indexPath.row];**
///如何將它們排列在組中?
我想這
NSString *keys =aBook.name;
NSMutableDictionary *dicta = [NSMutableDictionary dictionary];
[dicta setObject:keys forKey:@"message"];
NSSortDescriptor *sortNameDescriptor =
[[[NSSortDescriptor alloc]
initWithKey:@"message" ascending:YES]
autorelease];
,但我不能按字母順序排列:(顯示它們
}
感謝
有這些東西叫做表格部分。也許你應該看看它們和TableViewSuite示例。 – Nick 2010-09-02 02:17:01
謝謝,但我不知道如何進行,我應該創建詞典,然後顯示?我應該在哪裏添加元素到dic?你能否詳細說明 – prajakta 2010-09-02 02:35:05