I am adding imageview in viewcontroller.
It is working good in ios6 but in ios7 It display with white background.
I have tried clearColor
but it's not working.
Here is my code
[imgcharacter setImage:[UIImage imageNamed:[NSString stringWithFormat:@"character%d.png",reelBtnTag]]];
[imgcharacter setFrame:CGRectMake(100,100, 247.5f, 385.0f)];
imgcharacter.userInteractionEnabled=YES;
[imgcharacter setBackground : [UIColor clearColor]];
[captureview addSubview:imgcharacter];
Try this way....
NSData *imageData = UIImagePNGRepresentation(Your Image);
UIImage *image=[UIImage imageWithData:imageData];
UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 52, 40, 50)];
imageView.backgroundColor = [UIColor clearColor];
imageView.image = image;
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments