美文网首页
iOS UItableviewCell 右侧显示文字 和 箭头

iOS UItableviewCell 右侧显示文字 和 箭头

作者: 回到十八 | 来源:发表于2019-10-23 10:03 被阅读0次

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

        //!!!必须实现:UITableViewCellStyleValue1 这种样式

        UITableViewCell *cell = [[UITableViewCell alloc]       initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cell"];    

        cell.textLabel.text =@"我在左侧";

        cell.detailTextLabel.text=@"我在右侧";

        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

}

相关文章

网友评论

      本文标题:iOS UItableviewCell 右侧显示文字 和 箭头

      本文链接:https://www.haomeiwen.com/subject/muuhvctx.html