图片没有显示出来,当架构设置为64位 [英] Images not showing up when architecture set to 64 bit

查看:131
本文介绍了图片没有显示出来,当架构设置为64位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关转变我的应用程序到64位,我改变了体系结构构建设置为:

For transitioning my app to 64-bit, I changed the Architectures build setting to:

ARCHS =$(ARCHS_STANDARD_INCLUDING_64_BIT);

ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";

应用程序运行过程中出现细微除了一些图片无法显示(空白)。为什么会发生?任何线索?

App is runnig fine except that some of the images are not showing up (blank). Why would it happen? any clues?

推荐答案

答案就在这里:

<一个href="https://devforums.apple.com/message/922989#922989">https://devforums.apple.com/message/922989#922989

我找到了原因。在的viewController,这是尚未分配,而是包含在应用程序中,有以下实现(在的.m文件执行上面的viewController):

I found the reason. In a viewController, which was not yet allocated, but included in the app, there was following implemented (in the .m-file above implementation viewController):

@implementation UIImageView (UIScrollView)
- (void)setAlpha:(float)alpha {
..........(no difference if here is some code or not) ...............
  [super setAlpha:alpha];
}
@end

把上述意见解决了这个问题,尽管它并没有显示图像的按钮是不是在一个滚动视图。

Putting above in comment solved the problem, even though the button which didn't display the image wasn't in a scrollview.

这篇关于图片没有显示出来,当架构设置为64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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