iOS UItableviewCell 右侧显示文字 和 箭头
2019-10-23 本文已影响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;
}