Search This Blog

Dec 24, 2010

How to create a Animated Menu in iPhone or iPad.

This code is used for Show - Hide a UIView on a particular UIButton Click. Put your content on viewMenu. This code will Show - Hide this UIView with animation.

    [self.view bringSubviewToFront:viewMenu];
    UIButton* btnSelect = (UIButton*)sender;
    btnSelect.selected = !(btnSelect.selected);
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.5];
        [viewMenu setAlpha:1.0];
        [viewMenu setAlpha:0.0];
        [UIView commitAnimations];

1 comment:

  1. thanks a lot but where is the source code for this file