equal
deleted
inserted
replaced
80 CGRect screen = [[UIScreen mainScreen] bounds]; |
80 CGRect screen = [[UIScreen mainScreen] bounds]; |
81 [UIView beginAnimations:@"hiding popover" context:NULL]; |
81 [UIView beginAnimations:@"hiding popover" context:NULL]; |
82 [UIView setAnimationDuration:0.35]; |
82 [UIView setAnimationDuration:0.35]; |
83 self.view.frame = CGRectMake(screen.size.height, 0, 200, 170); |
83 self.view.frame = CGRectMake(screen.size.height, 0, 200, 170); |
84 [UIView commitAnimations]; |
84 [UIView commitAnimations]; |
|
85 [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.35]; |
85 } |
86 } |
86 |
|
87 [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.35]; |
|
88 |
87 |
89 HW_chatEnd(); |
88 HW_chatEnd(); |
90 SDL_iPhoneKeyboardHide((SDL_Window *)HW_getSDLWindow()); |
89 SDL_iPhoneKeyboardHide((SDL_Window *)HW_getSDLWindow()); |
91 } |
90 } |
92 |
91 |
163 [UIView setAnimationDuration:0.2]; |
162 [UIView setAnimationDuration:0.2]; |
164 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, 170); |
163 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, 170); |
165 [UIView commitAnimations]; |
164 [UIView commitAnimations]; |
166 } |
165 } |
167 |
166 |
168 if ([actionSheet cancelButtonIndex] != buttonIndex) |
167 if ([actionSheet cancelButtonIndex] != buttonIndex) { |
|
168 if (IS_DUALHEAD()) |
|
169 [[NSNotificationCenter defaultCenter] postNotificationName:@"remove overlay" object:nil]; |
169 HW_terminate(NO); |
170 HW_terminate(NO); |
|
171 } |
170 } |
172 } |
171 |
173 |
172 @end |
174 @end |