I'm trying to set a constant between iPhone (4,5,6...) and iPad, but I can't do a difference between iPhone 4 and iPhone 6 for example, so how to do ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
this question has a script that i use for this purpose
Detect current device with UI_USER_INTERFACE_IDIOM() in Swift
use it, and define constraints constant according to the device, and that's it. :)