ios4 - My iOS Views are off half a pixel? -


My graphics are still visible as long as I do not add or subtract half pixels in Y coordinate.

I This is a symptom that usually occurs when coordinates are set to sub-pixel values, I believe one of my thoughts must be closed or something else.

But I inspected the window, saw the controller and the sub-scenes, and I do not see any root or center with subpixel values. / P>

I'm stumped, any thoughts?

See if you are using the center property of a scene if you have other subviews on their size , They can place themselves in half-pixel values.

In addition, if you are using the code to generate the UI, then I would suggest using it. This tool allows you to see all geometry of visible widgets in the simulator. For rounded coordinates, half pixel views in red versus blue are highlighted. It helps a lot.

Comments