在没有自定义单元格的情况下向uitableview显示一个detaildisclosure按钮

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:UITableViewCellAccessoryDe​​tailDisclosureButton];