ios - Image missing from distribution -


i having issue image missing, when built distribution. also, occurs on iphone 5, not iphone 4 or 4s.

this screenshot when built development, on simulator.

and this screenshot when built distribution, on actual iphone 5.

i have single target both development , distribution. relevant code:

int devicenumber = 4;         if([uiscreen mainscreen].bounds.size.height > 500)             devicenumber = 5;  myintroductionview *introductionview = [[myintroductionview alloc] initwithframe:cgrectmake(0.0, 0.0, self.view.bounds.size.width, self.view.bounds.size.height) panels:@[panel1,panel2,panel3]];  if(devicenumber == 4){             [introductionview setbackgroundimage:[uiimage imagenamed:@"one degree_iphone4_background.png"]];         }         else{             [introductionview setbackgroundimage:[uiimage imagenamed:@"one degree_iphone5_background.png"]];         } 

and within myintroductionview.m, relevant code is:

-(void)setbackgroundimage:(uiimage *)backgroundimage{     self.backgroundimageview.image = backgroundimage; }  -(void)buildbackgroundimage{     self.backgroundimageview = [[uiimageview alloc] initwithframe:self.frame];     self.backgroundimageview.backgroundcolor = [uicolor clearcolor];     self.backgroundimageview.contentmode = uiviewcontentmodescaletofill;     self.backgroundimageview.autoresizessubviews = uiviewautoresizingflexibleheight | uiviewautoresizingflexiblewidth;     [self addsubview:self.backgroundimageview]; } 

buildbackgroundimage called within init function.

i'm not 100% sure still case know used be:

the ios simulator not case-sensitive regard external filenames (such images). if image named "myimage.png" , program asks "myimage.png", simulator will correctly find , load image.

however when try , run on device, is case sensitive, , not accept incorrectly-cased file.

so double check capitalization of file identical you're asking in program. fix issue right up.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -