Images not showing up when architecture set to 64 bit

隐身守侯 提交于 2019-11-27 09:08:23

Answer lies here:

https://devforums.apple.com/message/922989#922989

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.

Ilesh

Update the Data structure used in code according to 64 bits for example replace Float with CGFloat,(if not working Than also change int type with NSInteger)
see here for more information
In my case replace Float with CGFloat and solve my problem (simplest way to replace float to CGFloat )

#define float CGFloat

Write in .pch file and check it working or not.
Thanks

user4996235

It fixed my issue to change

- (void)setAlpha:(float)alpha {

to:

- (void) setAlpha:(CGFloat)alpha {
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!