When I add picture to the ImageView in IB - its OK! But when I add picture in code, ImageView flattens a picture and It starts to look ugly.
Here is my code:
- (void)viewDidLoad
{
[super viewDidLoad];
if([self.navigationItem.title isEqualToString:@"Cup"])
{
[mainImage setImage:[UIImage imageNamed:@"cup2"]];
}
[self.view addSubview:giftImage];
}
Why this happens? Thanks!