Mi piacerebbe che un UIView scivoli dalla parte inferiore dello schermo (e rimanga a metà schermo) come un UIActionSheet. Come posso realizzare questo?Come posso presentare un UIView dalla parte inferiore dello schermo come un UIActionSheet?
UPDATE: Sto usando il seguente codice:
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 sembra animare da un angolo e che appare in un angolo. Come posso farlo scorrere verso l'alto dal basso? Avvicinarsi!
aggiornato post con un codice che dovrebbe aiutare – iwasrobbed
un altro buon esempio: http://github.com/homeyer/CustomUIActionSheet –