I commented on this before but you seem to be posting the code again.
Code:
else (buttonIndex == 0);
{
//NSLog(@"cancel");
}
Is that even compiling? There's no expression after if and certainly no semi-colon.
Also, please use [code] [/ code] tags when posting code from now on. It makes it much easier to read.