title: How can I animate displaying UIPickerView after pressing button?
body: <p>I want to animate my UIPickerView after pressing the button. I already have coded my UIPickerView to be hidden on viewDidLoad and not hidden after pressing a button, but it doesn't animate like how a ModalViewController animates by default. I just want my UIPickerView to be animated just like a ModalViewController animates by default.</p>
  
  <p>I've researched already on the site, and on the web, but I can't seem to do it properly.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>#pragma mark - Picker View 
  
  - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView
  {
      return 1;
  }
  
  - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
  {
      return 4;
  }
  
  - (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
  {
      timersArray = [[NSMutableArray alloc] init];
      [timersArray addObject:@"No timer"];
      [timersArray addObject:@"15 seconds"];
      [timersArray addObject:@"30 seconds"];
      [timersArray addObject:@"60 seconds"];
  
      return [timersArray objectAtIndex:row];
  }
  
  - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
  {
      if ([[timersArray objectAtIndex:row] isEqual:@"No timer"])
      {
          timerIndication.text = @"No timer selected";
          timersPickerView.hidden = YES;
          // Animation code to dismiss picker should go here
      }
      else if ([[timersArray objectAtIndex:row] isEqual:@"15 seconds"])
      {
          timerIndication.text = @"15 seconds selected";
          timersPickerView.hidden = YES;
          // Animation code to dismiss picker should go here
      }
      else if ([[timersArray objectAtIndex:row] isEqual:@"30 seconds"])
      {
          timerIndication.text = @"30 seconds selected";
          timersPickerView.hidden = YES;
          // Animation code to dismiss picker should go here
      }
      else if ([[timersArray objectAtIndex:row] isEqual:@"60 seconds"])
      {
          timerIndication.text = @"60 seconds selected";
          timersPickerView.hidden = YES;
          // Animation code to dismiss picker should go here
      }
  }
  
  #pragma mark - Delay method
  
  // This is where Send button should be enabled
  - (IBAction)selectTimer
  {
      timersPickerView.hidden = NO;
      // Animation code to present picker view should go here
  }
  </code></pre>