Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nightwar00

macrumors newbie
Original poster
Jun 14, 2009
16
0
hi again .....

i have a little problem. When i'm running my app on xCode everything gonna be alright. But when i upload my app on my iphone some image doesn't appears....

for example this image works :
Code:
est = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"im1.png"]];
		est.layer.frame = CGRectMake(200, 150, 73, 120);
		[self.view est];

but when i do that that does'nt work :

Code:
testView = [[TestView alloc] init];
		[testView setController:self];
		[self.view addSubview:testView];

and in TestView.h

Code:
- (id)init {
    if (self = [super initWithFrame:CGRectMake(0, 0, 480, 320)]) {
        testImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.png"]];
		[self addSubview:testImage];
    }
    return self;
}
any help?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.