不显示在iPad上的AIR图像,但会显示在其他台iPad [英] Images not displaying on iPad AIR, but display on other iPads

查看:161
本文介绍了不显示在iPad上的AIR图像,但会显示在其他台iPad的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的图片不显示在iPad上架子,而是显示在其他台iPad。他们不显示在图像观点或上的按钮。再说我的图片,分段控制图像也没有显示,但我仍然可以点击按钮和分段控制,我知道他们在UI上存在。我发现我的按钮,背景图片做展示,但我的按钮的图像没有。也许这将帮助 - 我想,这开始后,我得到约需要64位支持为15年2月1日(验证时)消息,建议我改变默认的内部设置为标准体系。使得这一建议的改变后,图像停止显示。

My images are not displaying on iPad AIRs, but are displaying on other iPads. 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. 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'. After making this recommended change, the images stopped showing.

在生成设置,在体系结构:前:$(ARCHS_STANDARD_32_BIT)之后:标准架构(ARMv7的,arm64)

In Build Settings, under Architectures: Before: $(ARCHS_STANDARD_32_BIT) After: Standard Architectures (armv7, arm64)

当我改了回来,影像又开始显示。

When I changed it back, the images started displaying again.

感谢您的帮助!

推荐答案

我发现了错误,与64位处理iPad上的空气。我有一个UIImageView +分类文件,试图始终显示垂直滚动条。这个文件引起的问题,我删除它以修复该错误。希望这可以帮助别人了。谢谢

I found the bug, related to 64-bit processing on iPad Air. I had a UIImageView+Category file to try and always show the vertical scroll bar. This file caused the problem, I removed it to fix the 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

这篇关于不显示在iPad上的AIR图像,但会显示在其他台iPad的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆