equal
deleted
inserted
replaced
156 |
156 |
157 #pragma mark - |
157 #pragma mark - |
158 #pragma mark actionSheet methods |
158 #pragma mark actionSheet methods |
159 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex { |
159 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex { |
160 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone){ |
160 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone){ |
|
161 CGRect screen = [[UIScreen mainScreen] bounds]; |
161 [UIView beginAnimations:@"table width less" context:NULL]; |
162 [UIView beginAnimations:@"table width less" context:NULL]; |
162 [UIView setAnimationDuration:0.2]; |
163 [UIView setAnimationDuration:0.2]; |
163 self.view.frame = CGRectMake(280, 0, 200, 170); |
164 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, 170); |
164 [UIView commitAnimations]; |
165 [UIView commitAnimations]; |
165 } |
166 } |
166 |
167 |
167 if ([actionSheet cancelButtonIndex] != buttonIndex) |
168 if ([actionSheet cancelButtonIndex] != buttonIndex) |
168 HW_terminate(NO); |
169 HW_terminate(NO); |