6
votes

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?

3
So only when running in 64 bit do the images fail to appear? Or now some images never appear? Simulator or device or both? We need more info update the question please.David H
yes only running on a 64 bit device (simulator or iphone 5s) some images never appear on any run, and works perfect on 32 bit device (simulator or device).Firdous
ive observed that most of those failed images include whose view was built using xib layout and image assigned through code, others include those that were custom images on uibarbuttonitemsFirdous
Post a demo project with one such image on Dropbox. My guess at this point is that the image decoding code in ios may be the issue, along with a possibly improperly coded image. For jpgs, ios uses the integral array processor and that code is quite complex.David H
fixed that, see answerFirdous

3 Answers

13
votes

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.

4
votes

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

3
votes

It fixed my issue to change

- (void)setAlpha:(float)alpha {

to:

- (void) setAlpha:(CGFloat)alpha {