In fact, this problem was discovered quite early, but I was busy with other things and did not care about it. Today, when I was writing code, I wrote a viewcontroller with imageview
When I pushed it into navigationController, I found that the image was severely deformed and I couldn't see it all.
So I had to study why. Let's take a step-by-step troubleshooting. viewcontroller was designed with ib, And I directly generated an imageview with code again,
After configuring the same image and adding it to this view, we found that the display effect was normal. It seems that it was a problem with ib design.
I searched the internet for related problems and had no results. I had to ask for help in the group. Fortunately, there were many enthusiastic people who told me that I could set the top bar and
Bottom bar,
If your viewcontroller needs to be pushed to the navigationcontroller, set the top bar to the navigation bar during design. In this way, the viewcontroller will have a navigation bar layout under ib, the design is the same as the display.
Similarly, if you add a tab bar, set the bottom bar to the tab bar, so that ib corresponds to the display.
You should pay attention to it when using ib for layout later.