简体   繁体   English

图像不在iPad AIR上显示,但在其他iPad上显示

[英]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.

相关问题 仅ipad air,在Xcode 6中编译应用程序时不显示图像,其他iPad都可以 - ipad air only, does not display images when app is compiled in Xcode 6, other iPads are okay 安装要测试的项目的.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) 图像未显示在较新的iPad设备(如iPad Air,iPad3)上,但显示在模拟器iOS 8.1上 - Images not displayin on newer iPad devices like iPad Air, iPad3 but displaying on simulator iOS 8.1 Webapp无法在iPad Air上正确显示 - Webapp not displaying properly on ipad air 图像适用于iPad Retina模拟器,但不适用于iPad Air - images work for iPad Retina simulator but not for iPad Air 自动放大iPad Air图像以适应iPad Pro? - Automatically scale up iPad Air images to fit iPad Pro? 在 iPhone 上显示内联图像,iPad - Displaying inline images on iPhone, iPad AIR for iOS并显示正确的DPI图像 - AIR for iOS and displaying correct DPI images 图像是否兼容所有iPad? - Images compatible to all iPads? 快速显示图像时iPad图像重影 - iPad image ghosting when displaying images rapidly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM