Nit*_*hin 1 iphone uitableview accessorytype
如何在不使用自定义单元格的情况下向uitableview显示详细信息披露按钮.我通过使用accessoryType:方法知道它,但不知道如何实现..pls帮助..
Man*_*ath 15
//自定义表格视图单元格的外观.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
}
[cell setAccessoryType:UITableViewCellAccessoryDetailDisclosureButton];
return cell;
}
Run Code Online (Sandbox Code Playgroud)
[cell setAccessoryType:UITableViewCellAccessoryDetailDisclosureButton];
| 归档时间: |
|
| 查看次数: |
6595 次 |
| 最近记录: |