I am having an application on iTunes store which displays some UILabel and UIWebView on UIAlertView. According to session video,
A solution is to subclass UIAlertView and detect the "_UIModalItemAlertContentView" view. My AlertView had a UITextField, so I used it to detect the content view :
- (void)show
{
[ super show ];
UIView *contentView=nil;
if([[[UIDevice currentDevice] systemVersion] floatValue ] < 7.0f)
{
contentView=self;
} else {
UIView *rootView=[self textFieldAtIndex:0];
while((rootView=[rootView superview])!=nil)
{
if([ NSStringFromClass([rootView class]) isEqualToString:@"_UIModalItemAlertContentView"])
{
contentView=rootView;
break;
}
}
}
if(contentView!=nil)
{
[ contentView addSubview: ... ];
}
}