[英]Images not displaying on iPad AIR, but display on other iPads
My images are not displaying on iPad AIRs, but are displaying on other iPads. 我的图像不会显示在iPad AIR上,而是显示在其他iPad上。 They are not displaying in Image views or on buttons.
它们不在图像视图或按钮上显示。 Besides my images, the Segmented Control image is also not displaying, although I can still tap on the buttons and segmented control where I know they exist on the UI.
除了我的图像,分段控制图像也没有显示,虽然我仍然可以点击按钮和分段控件,我知道它们存在于UI上。 I found that background images on my buttons do display, but an image on my buttons do not.
我发现我的按钮上的背景图像会显示,但我的按钮上的图像却没有显示。 Maybe this will help - I think this started after I got the message about required 64 bit support as of 2/1/15 (during Validation), recommending me to change the default build setting to 'Standard Architecture'.
也许这会有所帮助 - 我认为这是在我从2015年2月1日(验证期间)收到有关所需64位支持的消息后开始的,建议我将默认构建设置更改为“标准体系结构”。 After making this recommended change, the images stopped showing.
进行此建议更改后,图像停止显示。
In Build Settings, under Architectures: Before: $(ARCHS_STANDARD_32_BIT) After: Standard Architectures (armv7, arm64) 在构建设置中,在体系结构下:之前:$(ARCHS_STANDARD_32_BIT)之后:标准体系结构(armv7,arm64)
When I changed it back, the images started displaying again. 当我将其更改回来时,图像再次开始显示。
Thanks for your help! 谢谢你的帮助!
I found the bug, related to 64-bit processing on iPad Air. 我发现了与iPad Air上的64位处理相关的错误。 I had a UIImageView+Category file to try and always show the vertical scroll bar.
我有一个UIImageView + Category文件尝试并始终显示垂直滚动条。 This file caused the problem, I removed it to fix the bug.
这个文件引起了问题,我删除它来修复bug。 Hope this helps someone else out.
希望这有助于其他人。 Thanks
谢谢
@implementation UIImageView (ForScrollView)
- (void) setAlpha:(float)alpha {
if (self.superview.tag == noDisableVerticalScrollTag) {
if (alpha == 0 && self.autoresizingMask == UIViewAutoresizingFlexibleLeftMargin) {
if (self.frame.size.width < 10 && self.frame.size.height > self.frame.size.width) {
UIScrollView *sc = (UIScrollView*)self.superview;
if (sc.frame.size.height < sc.contentSize.height) {
return;
}
}
}
}
if (self.superview.tag == noDisableHorizontalScrollTag) {
if (alpha == 0 && self.autoresizingMask == UIViewAutoresizingFlexibleTopMargin) {
if (self.frame.size.height < 10 && self.frame.size.height < self.frame.size.width) {
UIScrollView *sc = (UIScrollView*)self.superview;
if (sc.frame.size.width < sc.contentSize.width) {
return;
}
}
}
}
[super setAlpha:alpha];
}
@end
We had the same problem. 我们遇到了同样的问题。 I was disappointed after some research as this seemed to be really strange.
经过一些研究后我很失望,因为这似乎很奇怪。 And it was.
它就是。 For me, restarting my Mac helped … Yes, not the answer you would want but that did the trick.
对我来说, 重新启动我的Mac有帮助 ......是的,不是你想要的答案,但这就是诀窍。 Cleaning, Deleting Derived data, Xcode restart etc. before with no effect.
清除,删除派生数据,Xcode重启等之前没有任何效果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.