In my iPhone application, which is based on a NavigationController, I have some elements a, b, c subviews of another view X. When I push the controller to get this view, on viewWillAppear, I adjust the size and position of a, b, and c according to the size of X in order to properly handle device orientation. The problem is that the size of X is being changed after viewWillAppear has been called. I subclassed X and wrote a setFrame method in order to set a breakpoint and try to find the cause. Below are links to images (I could not post the image directly due to lack of points) showing the break at viewWillAppear, and the break at setFrame after viewWillAppear with the callstack. I need help to find out why the size of X is being changed this way. Thanks.
At viewWillAppear: http://img718.imageshack.us/img718/9898/viewwillappearbreak.th.png
After viewWillAppear in break at subclassed setFrame: http://img703.imageshack.us/img703/7995/afterviewwillappear.th.png
Thanks in advance. ( I hope the images will show up correctly).