KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd like a UIView to slide up from the bottom of the screen (and stay mid-screen) like a UIActionSheet. How can I accomplish this? UPDATE: I am using the following code: 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]; The view seems to be animating from the corner and appearing in the corner. How can I make it slide up from the bottom? Getting close!
Tags (comma-separated)
Save Edits
Cancel