简体   繁体   English

安装要测试的项目的.ipa文件后,UI元素未显示在iPad air 2上,但可在其他iPad(iPad mini,iPad 2)上使用

[英]An UI element is not showing on iPad air 2 after installing the .ipa file of project for testing but works on other iPads(iPad mini, iPad 2)

When I run and debug my app everything is working fine, but when I create an .ipa file using save for ad-hoc deployment option and install it using iTunes or for testing on iPad air 2, some of the UI elements are not shown on iPad Air 2. 当我运行和调试我的应用程序时,一切正常,但是当我使用“保存用于临时部署”选项创建一个.ipa文件并使用iTunes安装该文件或在iPad air 2上进行测试时,某些UI元素未显示在iPad Air 2。

However it does work for other iPads like iPad mini and iPad 2. I have not tested other devices yet. 但是,它确实适用于其他iPad,例如iPad mini和iPad2。我尚未测试其他设备。

Unfortunately, my app is only for iPad so I have to fix this issue. 不幸的是,我的应用仅适用于iPad,因此我必须解决此问题。

Finally After trying a lot I found the solution but did not get the reason till now. 最终在尝试了很多之后,我找到了解决方案,但直到现在都没有找到原因。 In my code I used 在我的代码中

[self performSelector:@selector(showHideCountTimerView:) withObject:[NSNumber numberWithBool:NO] afterDelay:0.4f];

but when I used - 但是当我使用-

 [self showHideCountTimerView:NO];

and Its working. 及其工作。 Now the view which is not shown is showing on iPad air 2 on install the .ipa file 现在未显示的视图显示在安装.ipa文件的iPad air 2上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM