简体   繁体   中英

LaunchImage via Asset Catalog breaks layout on some iOS devices

I'm using Xcode 7.0 with an Enterprise Developer Certificate.

The App I'm developing uses seperate Storyboards for iPhone and iPad. The Layout uses Table Views.

布局


Whenever I'm setting the Launch Image Source via the Asset Catalog i noticed that on some devices (specifically iPhone 6, 6 Plus, 6s and 6s Plus) the layout behaves strangely. The content frame is being resized.

On all other devices in the Simulator it appears as intended.

This is the misbehaving layout:
布局行为异常

When I set the Launch Image Source to "don't use asset catalogs" it also appears as intended.

This is the layout as intended:
按预期布局

Unfortunately I only have iPhone 5s and iPad Mini 2 for testing, so I do not know if this also happens on real >iPhone6 devices.

Does anyone know what may be causing this? Any help appreciated.

Found the solution myself.

In the Interface builder I selected my Table View, then Size Inspector, then selected all Autoresizing options.

在此处输入图片说明

Now everything works as intended again.

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