PDA

View Full Version : Problems with views "shifting"




Dirk the Daring
Feb 27, 2009, 11:45 AM
Morning, everyone--

I have a simple project with a single view controller. This view controller has two views that it switches between by setting it's view to each as needed. This works fine.

So I decided I'd break down and have the app accept iPhone orientation changes. Adding the animated rotation was easy, and I added calls to the views to inform them of orientation changes so they could redraw correctly.

Then something odd happened. I noticed that as I was flipping between the two views, doing rotations, etc... The views were shifting. Specifically, they were shifting down. Sometimes by small amounts, sometimes by larger amounts, but always down.

It has me baffled. Has anyone seen this happen?