xcode - iOS Retractable Menu -


I am currently developing an app that has a music player so far in it a play, stop, and amp; A select song that shows the current song. Now, the player is always on the screen, I want to make it in the middle of the page as a button so that when the user clicks on it, the play, play, stop and select button button / icon will show the entire media player. When they click on that middle button, they will hide those icons.

If someone can tell me in the right direction whether it is already a tutorial, or other discussions (I really can not find anyone) would be horrible!

Note: I am not trying to create a popover menu that uses Facebook

I'm not sure what effect your visions are, but I think you have already said - just hide them

may do.

One simple way to put those elements inside their own view. Use storyboard or xib file to hide your buttons and controls you will see in a scene.

Then make a reference in your view controller in that scene. Control the call.

  @property (strong, non-fixed) IBOutlet UIView * controlsView;   

Ensure that you connect that view.

Then when the button is pressed, to hide that entire scene:

  Self. ControlsView.hidden = Yes;   

By pushing again, show it:

  self.controlsView.hidden = NO;   

If you feel a little smoother and want to feel, then wrap it in the animation like this:

  // hide UIView animateWithDuration : 2 Animation: ^ {[Self Controlled View Set Alpha: 0]; } Complete {self.controlsView.hidden = Yes; }]; // self.controlsView.alpha = 0 to show; Self.controlsView.hidden = No; [UIView Chet.Verticality: 2 Animations: ^ {[self.controlsView setAlpha: 1.0]; } ending { }];   

Hope that helps

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -