590Adding an UIAlertView

Unlike other UIViews, UIAlertView does not need to be added to another view via addSubView. [myAlertView show] takes care of that. Trivial, maybe. But I wasn’t aware of it.

583UIAlertViews additional Buttons

UIAlertView *alert = [[UIAlertView alloc]
	 message:@"Do you really want to?"
	 otherButtonTitles:@"OK", nil];
The intuively unobvious thing is, that otherButtonTitles requires a nil-terminated, comma-seperated list(?) of NSStrings. Although you can add (any number?) of additional buttons, it gets silly after about 3. Another thing to note is that in the case of two buttons, they get displayed side by side, whereas one button or more than two are shown vertically stacked.