iphone - How can I present a UIView from the bottom of the screen like a UIActionSheet? -


I have to slide a UIView UI from the bottom of the screen (and stay mid-screen) like UIAACASET. How can I complete it?

Update: I am using the following code:

  TestView * test = [[TestView alloc] initWithNibName: @ "testview "Bundle: zero]; [UIView startup permissions: zero reference: zero]; [UIView Set Animation Duration: 0.4]; [UIView Set Animation Crow: UIViewAnimationCurveEaseIn]; Test.view.center = CG Pointsmake (160,100); //test.view.frame = CGRectMake (0, 0, 160, 210); [[[UIApplication shared application] key window] Junk; test.view]; [UIView commitAnimations];  

Animate from the corner corner and is visible in the corner. How can I raise it from below? Stop!

What Matt did here, but changed the values ​​and direction only if you need it later So I give it a code to get it down from home (I will update this post).

Link:

Also, do not forget to exclude the code that moves the main scene downwards (hence instead of the UIVUE, just like the action cold,

Update with code:

This is to show / hide some "options" view in one of my apps What do I use:

  - (zero) toggle option: (BOOL) viewfinder {// This method is used as a player option Turns off / off (which sets repeat interval, repeat and turn ON / OFF) if (seehide == no) {// move between delay and supervision CGRK optionsframe = optionsController.look.fr; [UIView startup permissions: zero reference: zero]; OptionsFrame.origin.y + = optionsFrame.size.height; OptionsController.view.frame = optionsFrame; [UIView commitAnimations]; [OptionsController.view Display Selector: @selector (removeFromSuperview) withObject: After zero: 0.5]; [OptionsController Displayer: Object with @Selector (Release): After zero: 0.5]; OptionsController = Zero; } Other {optionsController = [[PlayOptionsViewController alloc] init]; // // Status of Options located at the bottom of the screen // CGTRF optionframe = OptionsController.look.fr; OptionsFrame.origin.x = 0; OptionsFrame.size.width = 320; OptionsFrame.origin.y = 423; // For the animation, move the scene from its height // optionsFrame.origin.y + = optionsFrame.size.height; OptionsController.view.frame = optionsFrame; [Add windowSubview: OptionsController.View]; [UIView startup permissions: zero reference: zero]; OptionsFrame.origin.y - = optionsFrame.size.height; OptionsController.view.frame = optionsFrame; [UIView commitAnimations]; }}  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -