I am creating a UITableTableViewCell
from a nib file. I am using width of 320 for the the cell width. I found when I run the app in iphone 6
simulator, the cell cannot occupy the whole width of the table view. If I use iphone 5s, the width is just fine. I want to know how to adjust the width of the xib to fit to different iPhone versions.
Did you enable the Use Auto layout and Use Size Classes as below do that first in both table view and table view cell .and tell me your problem
1)After that select both image and label and do as below
2) Select the image and do below
3) select the label an do the following
Can you check the link below:
iOS - Custom table cell not full width of UITableView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With