简体   繁体   中英

UIImage displaying incorrectly in a UIImageView

I have an XIB file that looks like this:

XIB屏幕截图

As you can see I have a UIImageView at the bottom of the view, note its all contained within the view.

However, when I run the code which places a UIImage in the view, I get this:

跑步

Here is the image I am trying to display:

Image

Why does it go off the bottom of the screen? I've seen similar behaviour in some of my other projects, whats going on?

Thanks,

Jack

In IB, for the top-level view, for the Simulated User Interface Elements, set the Top Bar to be one of the Navigation Bar options. Understand, you will!

嗨,杰克,您还可以通过界面生成器更改视图大小,例如320&460

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM