Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Images not showing up when architecture set to 64 bit

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

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?

like image 943
Firdous Avatar asked Dec 31 '13 09:12

Firdous


1 Answers

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.

like image 89
Firdous Avatar answered Sep 20 '22 02:09

Firdous