图片没有显示出来,当架构设置为64位设置为、架构、图片

2023-09-07 17:59:13 作者:冷冷的醉眼

有关转变我的应用程序到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?

推荐答案

答案就在这里:

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.