且构网

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

UIButtons 在自动旋转设置框架后不响应触摸

更新时间:2023-02-01 22:20:06

我认为你的问题是在你的框架调整.我的直觉告诉我它与 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.