equal
deleted
inserted
replaced
94 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, 170); |
94 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, 170); |
95 [UIView commitAnimations]; |
95 [UIView commitAnimations]; |
96 } |
96 } |
97 |
97 |
98 -(void) dismiss { |
98 -(void) dismiss { |
99 CGRect screen = [[UIScreen mainScreen] bounds]; |
99 if (IS_IPAD() == NO) { |
100 [UIView beginAnimations:@"hiding popover" context:NULL]; |
100 CGRect screen = [[UIScreen mainScreen] bounds]; |
101 [UIView setAnimationDuration:0.35]; |
101 [UIView beginAnimations:@"hiding popover" context:NULL]; |
102 self.view.frame = CGRectMake(screen.size.height, 0, 200, 170); |
102 [UIView setAnimationDuration:0.35]; |
103 [UIView commitAnimations]; |
103 self.view.frame = CGRectMake(screen.size.height, 0, 200, 170); |
|
104 [UIView commitAnimations]; |
|
105 } |
104 |
106 |
105 [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.35]; |
107 [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:0.35]; |
106 |
108 |
107 [self removeChat]; |
109 [self removeChat]; |
108 } |
110 } |
183 } |
185 } |
184 |
186 |
185 #pragma mark - |
187 #pragma mark - |
186 #pragma mark actionSheet methods |
188 #pragma mark actionSheet methods |
187 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex { |
189 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex { |
188 if (IS_IPAD() == NO){ |
190 if (IS_IPAD() == NO) { |
189 CGRect screen = [[UIScreen mainScreen] bounds]; |
191 CGRect screen = [[UIScreen mainScreen] bounds]; |
190 [UIView beginAnimations:@"table width less" context:NULL]; |
192 [UIView beginAnimations:@"table width less" context:NULL]; |
191 [UIView setAnimationDuration:0.2]; |
193 [UIView setAnimationDuration:0.2]; |
192 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, 170); |
194 self.view.frame = CGRectMake(screen.size.height-200, 0, 200, 170); |
193 [UIView commitAnimations]; |
195 [UIView commitAnimations]; |