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; //显示最右边的箭头

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM