wait_fences:未能在 iPhone 中收到回复:10004003
我正在 iPad 上开发一个应用程序来阅读和注释 pdf。我的应用程序在纵向/横向模式下工作正常,但是当我旋转设备或模拟器时,它给我一个奇怪的错误wait_fences:无法接收回复:10004003 每当我从横向旋转到纵向或从纵向旋转到横向时。
有时我的应用程序崩溃,有时由于此错误而无法正常旋转。 我用谷歌搜索了 wait_fences 但我什么也没得到。
谁能帮我解决这个问题吗? 提前致谢。
i am developing an application on ipad to read and annotate pdf's.My application is working fine in Portrait/landscape mode but when I rotates the device or simulator its giving me weired error wait_fences: failed to receive reply: 10004003 whenever i rotates either from landscape to portrait or from portrait to landscape.
some times my app is crashing and sometimes its not rotating properly because of this error.
i googled about wait_fences but i didnt get anything.
can anyone please help me on this.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在这里,您在 willAnimateRotationToInterfaceOrientation 方法中执行以下操作。
因此,这里不是直接调用这个“dismissPopoverAnimated”方法,而是创建一个自定义方法“Remove_Popover”并在计时器中调用它,如下所示:
当您将dismissPopoverAnimated代码放入willAnimateRotationToInterfaceOrientation方法中时,在NSTimer中调用此方法。只需制作您自己的自定义方法,如下所示:
如果您能解决问题,请告诉我。
Here you are doing the following things in the method willAnimateRotationToInterfaceOrientation.
So, Here instead of calling this "dismissPopoverAnimated" method directly, make one custom method "Remove_Popover" and call that in timer like as follows:
Call this method in NSTimer when you put the dismissPopoverAnimated code inside the willAnimateRotationToInterfaceOrientation method. And just make your own custom method as follows:
Let me know if you can solve the issue.
使用 willRotateToInterfaceOrientation 我称之为我的神话,我为所有 UI 元素设置横向和纵向矩形
withih willRotateToInterfaceOrientation i am calling my mythod where i am setting the landscape and portrait rects for all my UI elements