title: How do I disable a UIButton?
body: <p>I am working on a project in which I have to show all photos of Photo Library in a plist and show them horizontally on <code>UIButton</code>s. </p>
  
  <p>My app will also have an edit button: when the user clicks this button, a delete mark (such as usually appears in other iPhone/iPad apps) should show on each button. </p>
  
  <p>But here's the crucial bit: as soon as this delete mark appears, the functionality of the button should be disabled. I've tried accomplishing this with the following:</p>
  
  <pre><code>{
    editbutton.enabled=NO;
  }
  </code></pre>
  
  <p>...but it neither produces an error nor works. What should I do?</p>