Sreejith
Sreejith

Reputation: 1355

UITableView getting clipped by 1 pixel on the right

I'm using a custom cell which have a background image. But the tableview is getting clipped by 1 pixel on the right. No matter what I tried, the image wont occupy the whole width.

So far I tried the below settings :

enter image description here

Also, this :

tableView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0)

What might be the issue?

Test Image :

enter image description here

Upvotes: 1

Views: 62

Answers (1)

Sreejith
Sreejith

Reputation: 1355

My UITableView was starting from (-1,0) After setting a width constraint, the tableview occupied the whole width. Thanks.

Upvotes: 1

Related Questions