Je voudrais qu'un UIView glisse du bas de l'écran (et reste au milieu de l'écran) comme une UIActionSheet. Comment puis-je accomplir cela?Comment puis-je présenter un UIView à partir du bas de l'écran comme une UIActionSheet?
MISE À JOUR: J'utilise le code suivant:
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 vue semble être animant du coin et apparaissant dans le coin. Comment puis-je le faire glisser du bas? Se rapprocher!
poste mis à jour avec un code qui devrait aider à – iwasrobbed
un autre bon exemple: http://github.com/homeyer/CustomUIActionSheet –