You want to end the method call as follows:
... cancelButtonTitle:@"Cancel" otherButtonTitles:@"Button1Title", @"Button2Title", nil];
This is the same pattern that you see in line formatting, where the argument list can be any length. Typically, the argument list then ends with nil. Do not forget that zero.
source
share