Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Jun 7th, 2010 | Syntax: Objective C | Size: 1.22 KB | Hits: 260 | Expires: Never
Copy text to clipboard
  1. MyCustomAlertView *alertView = [[MyCustomAlertView alloc] initWithTitle:@"It's time to make a decision"
  2.                                                                 message:@""
  3.                                                            cancelButton:[MyCustomAlertView buttonWithTitle:@"Cancel the process"
  4.                                                                                                     target:self
  5.                                                                                                     action:@selector(cancelTheProcess)],
  6.                                                       otherButtonsArray:[MyCustomAlertView buttonWithTitle:@"Do this cool thing"
  7.                                                                                                     target:self
  8.                                                                                                     action:@selector(doThisCoolThing1)],
  9.                                 [MyCustomAlertView buttonWithTitle:@"Do this other cool thing"
  10.                                                             target:self
  11.                                                             action:@selector(doThisOtherCoolThing)],
  12.                                 nil];