title: UIAlertView: alert won't display
body: <p>Can't get this alert instance to display in this implementation file, and I just can't find the problem. </p>
  
  <p>Everything else works fine.</p>
  
  <p>Any suggestions as to what's wrong?</p>
  
  <pre><code>#import "BIDSingleComponentViewController.h"
  
  
  
  @implementation BIDSingleComponentViewController
  
  - (IBAction)buttonPressed
  {
      NSInteger row = [self.singlePicker selectedRowInComponent:0];
      NSString *selected = self.characterNames[row];
      NSString *title = [[NSString alloc] initWithFormat:@"You selected %@", selected];
  
      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title
                                                      message:@"Thank you for choosing."
                                                     delegate:nil
                                            cancelButtonTitle:@"You're welcome."
                                            otherButtonTitles: nil];
      [alert show];
  }
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          // Custom initialization
      }
      return self;
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view from its nib.
      self.characterNames = @[@"Luke", @"Leia", @"Han", @"Chewbacca", @"Artoo", @"Threepio", @"Lando"];
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  #pragma mark
  #pragma mark Picker Data Source Methods
  
  - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView
  {
      return 1; // Incompatible integer to pointer conversion
  }
  
  - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
  {
      return [self.characterNames count];
  }
  
  #pragma mark Picker Delegate Methods
  
  -(NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
  {
      return self.characterNames[row];
  }
  
  
  @end
  </code></pre>
  
  <p>Header file:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface BIDSingleComponentViewController : UIViewController
  &lt;UIPickerViewDelegate, UIPickerViewDataSource&gt;
  
  @property (strong, nonatomic)IBOutlet UIPickerView *singlePicker;
  @property (strong, nonatomic)NSArray *characterNames;
  
  - (IBAction)buttonPressed;
  
  @end
  </code></pre>