I have ViewController with UITableView. if i touch on any Cell, it shows information about this Cell in another view. It is working well. But when i add MyViewController's view to UIAlerView's view, if i touch on AlertView, it is giving runtime error.
this is my code:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title" message:@"" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
MyViewController *VC = [[MyViewController alloc] init];
[alert setValue:VC.view forKey:@"accessoryView"];
[alert show];
any help please ... my program shows like this:

[alert setValue:VC.view forKey:@"accessoryView"];.UIAlertViewdoes not provide that methodUIAlertView??? Please the section marked as"Subclassing note"for this details developer.apple.com/library/ios/documentation/uikit/reference/… So you shouldn't really be messing with this. If Apple wanted you or allowed you to play with this they would provide a property for such things a long the lines ofsetAccessoryView:. This will most likely get your app rejected.