title: Objective-c Hidden View animation
body: <p>Hello I have a hidden view inside of my view that appears by the click of a button. But when you click on the button I want the view to do an slide up animation so it won't just appear but slide up to it's position.</p>
  
  <p>Here is the code for my hidden view:
  in .h:</p>
  
  <pre><code>@interface hidden_viewsViewController : UIViewController {
  
      IBOutlet UIView *loginview;
  
  }
  
  @property (nonatomic, retain) IBOutlet UIView *loginview;
  
  - (IBAction)login;
  - (IBAction)logout;
  </code></pre>
  
  <p>And in .m</p>
  
  <pre><code>@synthesize loginview;
  
  - (IBAction)login {
  
      loginview.hidden = NO;
  
  }
  
  - (IBAction)logout {
  
      loginview.hidden = YES;
  
  }
  
  - (void)viewDidLoad {
      [super viewDidLoad];
  
      loginview.hidden = YES;
  }
  </code></pre>