I am having an application on iTunes store which displays some UILabel
and UIWebView
on UIAlertView
. According to session video, addSubView
for UIAlertView
will not work. They have talked about ContentView
. But in the GM Seeds SDK, I could not find that property and there seems to be no other way.
You can really change accessoryView to customContentView in iOS7 UIAlertView
[alertView setValue:customContentView forKey:@"accessoryView"];
Try this code:
UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"TEST" message:@"subview" delegate:nil cancelButtonTitle:@"NO" otherButtonTitles:@"YES", nil];
UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
[av setValue:v forKey:@"accessoryView"];
v.backgroundColor = [UIColor yellowColor];
[av show];
But,to be sure that, i do't know if this will get rejected by apple.