Quote:
Originally Posted by drewag
Please show us the code where you are getting the warning.
|
I'm allocating the UIAlertView as per my requirement in the code.
- (void)willPresentAlertView

UIAlertView *)alertView // before animation and showing view
{
UIImage *theImage2 = [UIImage imageNamed:@"box 2.png"];
CGSize theSize = [alertView frame].size;
UIGraphicsBeginImageContext(theSize);
[theImage2 drawInRect:CGRectMake(0, 0, theSize.width, theSize.height)];
theImage2 = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[[alertView layer] setContents:[theImage2 CGImage]];
// Getting a warning message here that says,no '-setContents method found
}
It works fine, just that I'm getting a warning that I dont know about...