I want to have a custom UITableViewCell that support all orientation.
I created UITableViewCell with xib file and put UILabel to the centre of my cell with flexible width and height attribute. Label has an orange background.
Label's autoresizing masks are shown on screenshot:
And my cell looks like
I didn't added any line of code. I just save and restarted xCode.
Now my cell looks like
Every time I restarted xCode my label's width increase by 272 px and height by 46 px. I don't know how to fix it.
I found out that unchecking flexible width and height of the label (the red cross in your first picture) would fix the problem. I think it has something to do with that its superview doesn't has flexible width and height.