2009-02-26 36 views

回答

1

我的工作了:

-(UITableViewCellAccessoryType)tableView:(UITableView *)tableView 
     accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath 
{ 
    return UITableViewCellAccessoryDetailDisclosureButton; 
} 

-(void)tableView:(UITableView *)tableView 
accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath 
{ 
    //add action here 
} 

一個藍色箭頭會顯示每行的權利。

4

你的意思是許多應用程序有默認的箭頭(雪佛龍)?

UITableViewCell *myCell = ...; //GET a cell from somewhere. 
myCell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 
相關問題