iOS cannot change frame of UIButton

前端 未结 5 662
醉酒成梦
醉酒成梦 2021-01-04 06:23

I am currently stuck with a very weird problem. I am using iOS 6 and Xcode 4.5. I have a storyboard with a UIViewController and a UIButton in it. I

5条回答
  •  一向
    一向 (楼主)
    2021-01-04 07:10

    I had the same weird problem using XCode 4.5 and iOS 6 as deployment target. I am not using story board though. I managed to solve it by disabling the option "Use Autolayout" in the Interface Builder. (In the file inspector->Interface builder document.

    Hope this helps

提交回复
热议问题