Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode UIF标签匹配屏幕_Xcode_Uilabel - Fatal编程技术网

Xcode UIF标签匹配屏幕

Xcode UIF标签匹配屏幕,xcode,uilabel,Xcode,Uilabel,您好,快速问题我想让我的UILabel根据手机的大小自动调整,例如,当我在iPhone 5上运行程序时,标签非常适合,但是当在iPhone 6上模拟标签时,标签仍然以iPhone 5大小显示,我需要调整约束还是实现一行代码 感谢约束是调整标签大小的最佳方式,没有一行代码解决方案可以根据屏幕大小调整所有标签的大小

您好,快速问题我想让我的UILabel根据手机的大小自动调整,例如,当我在iPhone 5上运行程序时,标签非常适合,但是当在iPhone 6上模拟标签时,标签仍然以iPhone 5大小显示,我需要调整约束还是实现一行代码


感谢

约束是调整标签大小的最佳方式,没有一行代码解决方案可以根据屏幕大小调整所有标签的大小