Iphone 在不带自定义单元格的uitableview中显示detaildisclosure按钮

Iphone 在不带自定义单元格的uitableview中显示detaildisclosure按钮,iphone,uitableview,accessorytype,Iphone,Uitableview,Accessorytype,如何在不使用自定义单元格的情况下向uitableview显示详细信息披露按钮。我知道它是通过使用accessoryType:方法实现的,但不知道如何实现..请帮助..//自定义表视图单元格的外观 cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSI

如何在不使用自定义单元格的情况下向uitableview显示详细信息披露按钮。我知道它是通过使用accessoryType:方法实现的,但不知道如何实现..请帮助..

//自定义表视图单元格的外观

cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
- (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;
}

[单元格设置访问类型:UITableViewCellAccessoryDetailDisclosureButton]

//自定义表视图单元格的外观

- (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;
}
[单元格设置访问类型:UITableViewCellAccessoryDetailDisclosureButton]