equal
deleted
inserted
replaced
109 UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:titleStr |
109 UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:titleStr |
110 delegate:self |
110 delegate:self |
111 cancelButtonTitle:cancelStr |
111 cancelButtonTitle:cancelStr |
112 destructiveButtonTitle:confirmStr |
112 destructiveButtonTitle:confirmStr |
113 otherButtonTitles:nil]; |
113 otherButtonTitles:nil]; |
114 [actionSheet showInView:self.view]; |
114 |
|
115 if (IS_IPAD()) |
|
116 [actionSheet showFromBarButtonItem:(UIBarButtonItem *)sender animated:YES]; |
|
117 else |
|
118 [actionSheet showInView:self.view]; |
115 [actionSheet release]; |
119 [actionSheet release]; |
116 } |
120 } |
117 |
121 |
118 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex { |
122 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex { |
119 if ([actionSheet cancelButtonIndex] != buttonIndex) { |
123 if ([actionSheet cancelButtonIndex] != buttonIndex) { |