I am building an iPad application, and I added a simple UITableView to an inner view, somewhere in a XIB file.
The problem is, as you can see in the image, the UITableView doesn’t have the right size. Of course, I set it in IB (should be 360×243, as I recall), but no matter what I do, it still shows up wrong. If I increase the size to, let’s say 600 pixels width, it displays OK, but, then, it’ll be a little hack-ish and will be a nightmare to maintain.
Does anybody here have an explanation to this behavior?
I don’t have enough reputation, so here is the link to the image : http://imageshack.us/photo/my-images/13/screenshot20111002at413.png/
On the image, the UITableView background is set to white to be able to see it.
Check your autoresizing masks. Those can mess up view structures easily.