You can change the accessory for any of your own customContentView in the standard warning view in iOS7
[alertView setValue:customContentView forKey:@"accessoryView"];
Note that you must call this before [alertView show].
The simplest illustrative example:
UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"TEST" message:@"subview" delegate:nil cancelButtonTitle:@"NO" otherButtonTitles:@"YES", nil]; UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 50)]; v.backgroundColor = [UIColor yellowColor]; [av setValue:v forKey:@"accessoryView"]; [av show];

malex Jan 11 '14 at 20:28 2014-01-11 20:28
source share