创建 uitableview
uitableview *tableView;
tableView = [[uitableview alloc] initWithFrame : CGRectMake(0,0,320,420)];
;
;
显示 uitableview
[self.view addSubview : tableView];
uitableview 方法简介:
//Section总数
- (NSArray *)sectionIndexTitlesForTab
leView:(uitableview
*)tableView{
return TitleData;
}
by
cclang2009
-
移动操作系统
-
2011-12-21 08:41:36 阅读(913) 回复(0)
修改uitableview中Delete操作的默认按钮 以前写过一篇文章:TableView中的Delete操作,通过这篇文章,可以实现删除表视图的某条记录,但默认的删除按钮为Delete,如果想显示为删除的话,则需要实现uitableviewDelegate中的- (NSString *)tableView:(uitableview *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath方法。 Ios代码[code]1.- (NSString *)tableView:(uitableview *)ta...