Skip to content

No rounded corners when using UITableViewCell+FlatUI.h #181

@gconno

Description

@gconno

Ive followed the example in the Readme but I cannot seem to get the rounded corners on a tableView cell:

Here is my code:

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];

cell.textLabel.text=self.titles[indexPath.row];

[cell configureFlatCellWithColor:[UIColor greenSeaColor]
                   selectedColor:[UIColor cloudsColor]];
cell.cornerRadius = 5.f; //Optional

[cell setCornerRadius:5.0f];
[cell setSeparatorHeight:2.0f]; // optional
return cell;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions