Me gustaría que UIView se deslice hacia arriba desde la parte inferior de la pantalla (y permanezca en la mitad de la pantalla) como un UIActionSheet. ¿Cómo puedo lograr esto?¿Cómo puedo presentar una UIView desde la parte inferior de la pantalla como una UIActionSheet?
ACTUALIZACIÓN: estoy usando el siguiente código:
TestView* test = [[TestView alloc] initWithNibName:@"TestView" bundle:nil];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.4];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
test.view.center = CGPointMake(160,100);
//test.view.frame = CGRectMake(0, 0, 160, 210);
[[[UIApplication sharedApplication] keyWindow] addSubview:test.view];
[UIView commitAnimations];
La vista parece estar animando desde la esquina y que aparece en la esquina. ¿Cómo puedo hacer que se deslice hacia arriba desde abajo? ¡Acercándose!
puesto al día con algo de código que debe ayudar – iwasrobbed
otro buen ejemplo: http://github.com/homeyer/CustomUIActionSheet –