I have two IBOutlets pulling from the same NSMutable Array. The NSMutable is storing the name of png files. file1.png, file2.png, etc
Basically, its a pickerview and showing a picture and the file name (UIImageView and UILabel).
The UILabel IBOutlet for the filename works, displaying the filename, but not UIImageView IBOutlet but crashes with a SIGABRT.
[labelRace setText:[arrRace objectAtIndex:row]];
The UILabel returns the filename, file1.png, file2png, etc
[imageRace setImage:[arrRace objectAtIndex:row]];
This doesn't work, instead the app crashes I get a SIGABRT
and neither does this
[imageRace setImage:[UIImage imageNamed "%@",arrRace objectAtIndex:row]];
Hardcoding works, and confirms that the file is registered as a resource.
[imageRace setImage: [UIImage imageName"file1.png"]];
Any ideas what I'm doing wrong?
Basically, its a pickerview and showing a picture and the file name (UIImageView and UILabel).
The UILabel IBOutlet for the filename works, displaying the filename, but not UIImageView IBOutlet but crashes with a SIGABRT.
[labelRace setText:[arrRace objectAtIndex:row]];
The UILabel returns the filename, file1.png, file2png, etc
[imageRace setImage:[arrRace objectAtIndex:row]];
This doesn't work, instead the app crashes I get a SIGABRT
and neither does this
[imageRace setImage:[UIImage imageNamed "%@",arrRace objectAtIndex:row]];
Hardcoding works, and confirms that the file is registered as a resource.
[imageRace setImage: [UIImage imageName"file1.png"]];
Any ideas what I'm doing wrong?