I'm trying to show an ad in a UIView ... I need to set the background color to transparent ... I tried using,
[viewObject setBackgroundColor:[UIColor clearcolor]]
Although this made the UIView transparent, it displays a white background ...
Below is the HTML code I tried ...
NSString *HTML = [NSString stringWithFormat:@"<html><head><meta name=\"viewport\" content=\"width=device-width, user-scalable=no\"/><style>*{margin:0px;padding:0px}</style> </head><body style=\" background-color:transparent\"><div style=\"text-align: %@\">%@</div></body></html>",adAlignment,link];
Thanks in advance...
Yours faithfully,
Suraj
source share