Question

Same question as https://stackoverflow.com/questions/3100878/ipad-frame-programmatically-doesnt-match-with-ib but no-one answered!

I created a UITableCell layout in IB, copied done the measurements of the UILabel frame and used them to programmatically resize the frame.

But the Y coordinate is out by about 13 pixels - WHY?

Frame in IB x:176 y:16

Frame in code to match X:176.0f, y:3.0f

Was it helpful?

Solution

Check your autoresizing masks and Origin positions.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top