title: Whats the best way to stop this app crash when buttons rapidly pressed iphone obj-c
body: <p>I'm not entirely sure why this crash is happening and I'd like to get advice on the best way to deal with it.</p>
  
  <p>My app has 3 buttons. Each button requests a different XML file from a server which is used to populate a table view.</p>
  
  <p>If I rapidly press the buttons in sequence , button 1 button 2 button3  button 1 button 2 button3  button 1 button 2 button3 the application quits.</p>
  
  <p>What could be causing this. Would id be in the NSURLRequest side of things or the table view population side?</p>
  
  <p>How would you suggest I stop this behaviour? I was going to just set a boolean "isRequesting" to true when a button is pressed and set it to false when the table view is finished populating. If any button is pressed while isRequesting is True they do nothing.</p>
  
  <p>Does that sound wise or is there a better way?</p>
  
  <p>Thanks, dub</p>