Hi, I created a convenience method in a class by itself to display an image on screen. I tested it with my mainViewController, but for some reason it didnt show the image on screen. I simplified the convenience method, see .m file below.
Do you have any idea why the image isnt showing up? Thanks.
Code:
#import "Transition.h"
@implementation Transition
-(void)showSomething
{
UIImageView *tempoView=[[UIImageView alloc]initWithFrame:CGRectMake(40, 40, 50, 50)];
tempoView.image=[UIImage imageNamed:@"unlocked4.png"];
[self.view addSubview:tempoView];
[tempoView release];
}
@end
Do you have any idea why the image isnt showing up? Thanks.