gpt4 book ai didi

ios - 未对齐的 UILabel

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:48:41 24 4
gpt4 key购买 nike

我在 ScrollView 中放置了一个 View ,在该 View 中有一个 UILabel。
UILabel 定义如下:
label_ = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, 20)];
并且没有自动调整掩码。

当我在 Instruments 中的“Core Animation”工具中打开“Color misaligned images”时,所有 View 都正常,但单个 UILabel 被标记为未对齐。

我在这里错过了什么?

最佳答案

对齐。您缺少对齐方式。

编辑:抱歉,我情不自禁。我从未在 X 代码中使用过该功能,但我的建议是,如果 View 在应用程序中看起来没问题,那么谁在乎 IB 的想法...

关于ios - 未对齐的 UILabel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10396748/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com