且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更改UIView框架

更新时间:2022-12-29 22:57:57

您可能启用了项目中的自动布局,如果是这样的话 setFrame 直接无效。 点击此处获取更多信息

You might enabled the autolayout in your project , if so the setFrame straightly won't work . Check here for more info

解决方案:


  • 如果你不喜欢自动布局不再需要了

  • 使用autolayout检查上述链接。