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