Image Background Issue in IOS7

Shreyansh Shah

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];
user1673099

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

iOS 7 Navigationbar background image issue

From Dev

Can UIBarButtonItems in a Toolbar have a Background Image in iOS7?

From Dev

how to set background image in uitableview cell in ios7?

From Dev

UINavigationBar + iOS7 background image not setting properly

From Dev

Framework 7 left panel background image issue

From Dev

Responsive issue on background image

From Dev

Chrome background image issue

From Dev

Background Image of Search bar is looking weird in iOS7 but looking fine in iOS 6

From Dev

Navigation bar background image - supporting iOS6 and iOS7

From Dev

Why UINavigationBar backButton disappear after set its background image in iOS7?

From Dev

Background sync in iOS7

From Dev

iOS7 background fetch?

From Dev

Localstorage issue with ios7

From Dev

Background-Image Opacity Issue

From Dev

Background-Image Opacity Issue

From Dev

Responsive CSS Background Image Issue

From Dev

Background image in java swing issue

From Dev

Background image - Responsive issue CSS

From Dev

SSRS repeating background image issue

From Dev

Css background-image issue

From Dev

QT designer background image issue

From Dev

How can I change the UIWebView background color after sliding down UIWebView to fix the iOS7 status bar overlay issue?

From Dev

iOS7 Testing Background fetch in Simulator?

From Dev

IOs7 app crashing when in background

From Dev

iOS7 Background Synchronization (with NSURLSessionDataTask?)

From Dev

Updating badge icon in background on iOS7

From Dev

Background fetch calling once ios7

From Dev

UITableView grouped background color in iOS7?

From Dev

StartSignificantLocationChanges not launching the app in background iOS7

Related Related

HotTag

Archive