且构网

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

在自动旋转设定帧后,UIButtons不响应触摸

更新时间:2023-02-01 22:24:30

我认为你的问题在你的框架调整中。我的直觉告诉我它与 shouldAutorotateToInterfaceOrientation 中的逻辑有关,因为这发生在旋转实际完成之前。尝试按照这篇文章的方式进行数学运算,看看是否有帮助。

I think your problem is in your frame adjustment. My gut tells me it has something to do with the logic being inside shouldAutorotateToInterfaceOrientation because that happens before the rotation is actually done. Try doing your math the way they do it in this article and see if that helps.