ios - UIImageView changes its display size when added to a new window -


In the initial view, the UIImageView size is 60x60, and it has a UIImage of 300x300 in size. It looks like 60x60 on the screen.

However, when I do this:

  [self.topWindow addSubview: the ImageView];  

The image view jumps to the size of a display of 300x300, it contains the size of the UIImage included. Why does this happen Both the initial window and the new window have the same size. Logging the frame of the image view after being added to the new window shows that the size is still 60x60, what could cause UIImage to respect the size of that UIImageView now? Again, the only one I'm working on is adding as a subview of a separate window.

EDIT: I tried to do this with a simple UIUV. When it is added to a new window, its size does not change. Only happens with UIImageView.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -