Hello,
I have a very strange error in one of my apps and cannot understand why...
I have one app which is built into two different targets - one german and one english. Everything is working alright except for the images. In the german version no images are displayed (f.i for buttons). All the other variables are set alright.
I have added the pictures to the project and placed them all in an img dictionary, as I always do. If I use the english pics in the german version, everything is fine, but if I use the german pics (see the code below) no pictures are displayed. I have tried to create my buttons differently, I have tried to remove the images and add them again to the project, but nothing works so far. My code looks like this - in the "view did load" I use two different images and the choice is done depending on the version currently being built:
Does any one have any idea what might be wrong here? I do not know what to look for?
Thanks in advance!
MACloop
I have a very strange error in one of my apps and cannot understand why...
I have one app which is built into two different targets - one german and one english. Everything is working alright except for the images. In the german version no images are displayed (f.i for buttons). All the other variables are set alright.
I have added the pictures to the project and placed them all in an img dictionary, as I always do. If I use the english pics in the german version, everything is fine, but if I use the german pics (see the code below) no pictures are displayed. I have tried to create my buttons differently, I have tried to remove the images and add them again to the project, but nothing works so far. My code looks like this - in the "view did load" I use two different images and the choice is done depending on the version currently being built:
Code:
#ifdef DE_VERSION
[self.close_btn setImage:[UIImage imageNamed:@"close_german.png"] forState:UIControlStateNormal];
[self.do_btn setImage:[UIImage imageNamed:@"calculate_german.png"] forState:UIControlStateNormal];
#else
[self.close_btn setImage:[UIImage imageNamed:@"close.png"] forState:UIControlStateNormal];
[self.do_btn setImage:[UIImage imageNamed:@"calculate.png"] forState:UIControlStateNormal];
#endif
Does any one have any idea what might be wrong here? I do not know what to look for?
Thanks in advance!
MACloop