tableview cell 里面的>符号 显示最右边的箭头 去掉下划线

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    static NSString *ID=@"cell";
    
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    
    if(cell==nil){
        cell=[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    }
//    cell.textLabel.text=[NSString stringWithFormat:@"至爱小播指令集-----------------%zd",indexPath.row];
    cell.textLabel.text = self.rightArr[indexPath.row];

      tableView.separatorStyle = UITableViewCellSeparatorStyleNone;//去掉下划线


    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头
    
    return cell;
}

 

注意插的位置

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //显示最右边的箭头

 

posted on 2017-10-23 17:27  高彰  阅读(1644)  评论(0编辑  收藏  举报

导航