ImageView changes frames / frames

I am trying to find this problem here, but no topic is suitable ... I have a UINavigationController that pushes different kinds of UIView containing images. When the controller pushes a new view, the navigation bar moves to the screen, and it seems that the image is subsequently “worn out” - or it “moves from the top” (I hope I have described it enough).

In any case, my image has a frame of 320x460 (due to the top panel). I could not find the correct setting where the image would remain at that size. He is always "less." Subtracting 45 px for the new navigation bar (up to 320x415) did not help either.

What am I missing? Any hints are welcome!

PS: Removing resizemask at 0 did not help either ....

+1
iphone resize uiview uiimageview uinavigationcontroller
source share
1 answer

I managed to solve this by changing the following:

First, I created the application using the UIViewController template. Since I wanted to use the UINavigationController to handle my navigation, I added one and put it on top (!) Of My RootViewController.

Here is what I think could happen: whenever I clicked a new view on my navigation controller, it seemed to slide on top, something that I did not want to see. This may be due to the fact that the UIViewController “behind” my navigation controller had a different frame structure, namely the pixels that were made by the top navigation bar.

Well, I recently created a new application using the UINavigationController template. I deleted the TableView and added it as a view. Now clicking and popping up new view controllers works just fine - the slide is missing :)

Hope I can help someone.

0
source share

All Articles