gpt4 book ai didi

ios - xcode,ios,无法在屏幕上移动按钮

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:40:26 25 4
gpt4 key购买 nike

控制台输出:

2015-07-02 17:31:49.105 Make Maths Fun[15079:90b] but_1.center.x = 155.000000 but_1.center.y = 90.000000

2015-07-02 17:31:49.105 Make Maths Fun[15079:90b] but_2.center.x = 155.000000 but_2.center.y = 140.000000

代码:

but_1.center = CGPointMake(155, 90);
but_2.center = CGPointMake(155, 140);

截图:

enter image description here

输出说它在那个 x 和 y 但当我运行程序时它们在我在 viewcontroller 上的位置

最佳答案

试试这个

禁用您的“使用自动布局”选项,然后重试。

希望对您有所帮助。

关于ios - xcode,ios,无法在屏幕上移动按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31176434/

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