149 otherButtonTitles:nil]; |
149 otherButtonTitles:nil]; |
150 [actionSheet showInView:self.view]; |
150 [actionSheet showInView:self.view]; |
151 [actionSheet release]; |
151 [actionSheet release]; |
152 */ |
152 */ |
153 [UIView beginAnimations:@"Get Back" context:NULL]; |
153 [UIView beginAnimations:@"Get Back" context:NULL]; |
154 [UIView setAnimationDuration:3]; |
154 [UIView setAnimationDuration:1]; |
155 [UIView setAnimationDuration:UIViewAnimationCurveEaseOut]; |
155 //[UIView setAnimationDuration:UIViewAnimationCurveEaseOut]; |
156 |
156 |
157 self.view.frame = CGRectMake(0, -320, 480, 320); |
157 self.view.frame = CGRectMake(0, -320, 480, 320); |
158 self.parentView.frame = CGRectMake(0, 0, 480, 320); |
158 self.parentView.frame = CGRectMake(0, 0, 480, 320); |
159 [UIView commitAnimations]; |
159 [UIView commitAnimations]; |
160 |
160 |
161 [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2]; |
161 [self.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:1]; |
162 self.parentView = nil; |
162 self.parentView = nil; |
163 } |
163 } |
164 |
164 |
165 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex { |
165 -(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex { |
166 if ([actionSheet cancelButtonIndex] != buttonIndex) { |
166 if ([actionSheet cancelButtonIndex] != buttonIndex) { |