Image won't load in UIImageView iphone app?

You can try getting the path to the file So assuming the image is in the app bundle, get the path before with : NSString *imgPath = NSBundle mainBundle pathForRessource:@"firstLaunch" ofType:@"png"; countDownImage setImage:UIImage imageWithContentsOfFile:imgPath Another way is : countDownImage setImage:UIImage imageNamed:@"firstLaunch. Png".

You can try getting the path to the file. So assuming the image is in the app bundle, get the path before with : NSString *imgPath = NSBundle mainBundle pathForRessource:@"firstLaunch" ofType:@"png"; countDownImage setImage:UIImage imageWithContentsOfFile:imgPath; Another way is : countDownImage setImage:UIImage imageNamed:@"firstLaunch. Png".

Thanks a lot. I actually tried the 1st method you suggested already but it didn't work. Maybe because I read the image to an NSData.

Anyways the 2nd method worked great. CountDownImage setImage:UIImage imageNamed:@"firstLaunch. Png"; – Ali Jul 24 at 22:34 @Ali - you are welcome.

– user756245 Jul 24 at 22:39.

I'm trying to display an image in a UIImageView only in the first launch of the app. So after using NSUserDefaults to detect that successfully I try to load an image called firstLaunch. Png in the MainViewController.

I created the UIImageView IBOutlet and connected and everything works fine but the image DOESN'T load. Though later somewhere else in my code I can update the UIImageView successfully.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions