title: app crashes after restart
body: <p>I'm new to iphone development, and just to get a feel for it, I created a new view which has an alert popup on every load.</p>
  
  <p>This works correctly, however when i shut the app down, then reopen it, the whole app crashes. The only thing I'm doing is showing an alert.</p>
  
  <p>This is my code of the alert:</p>
  
  <pre><code>    UIAlertView *alert = [[UIAlertView alloc]
                        initWithTitle: @"Announcement"
                        message: @"This is really annoying just to make"
                        delegate: nil
                        cancelButtonTitle:@"OK"
                        otherButtonTitles:nil];
  [alert show];
  </code></pre>
  
  <p>I think I'm supposed to put <code>[alert release];</code> but Xcode keeps saying that <code>release</code> is unavailable.</p>
  
  <p>Is the <code>[alert release]</code> the reason my app keeps crashing on exit/restart?</p>
  
  <p>Thanks!</p>
  
  <p>Edit: Heres the surrounding code where I call UIAlertView</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  // Do any additional setup after loading the view.
  
  //just testing alerts..this shows up after the first load only
  UIAlertView *alert = [[UIAlertView alloc]
                        initWithTitle: @"Announcement"
                        message: @"This is really annoying just to make"
                        delegate: nil
                        cancelButtonTitle:@"OK"
                        otherButtonTitles:nil];
  [alert show];
  
  }
  </code></pre>