简体   繁体   中英

Xcode 10 Storyboard image rendering

I initially built my project in Xcode 9.3 and updgraded Xcode to 10 . After which all the images in the storyboard look very big. Storyboard renders 3x images by default and the layout looks bad. However everythings fine when the application is run on phone.

How i can reset the storyboard to render appropriate images.

在此处输入图片说明

There are possible few reasons:

  1. Views added without the constraints. If so, you should enable and set up the views with the constraints.

  2. Image views have Content Mode different than Aspect Fit . Set Aspect Fit mode.

  3. Image views have bigger value of height constraint than cells' height. You should set the views height dependent on superview height.

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