title: How is a UIButton's image set programmatically?
body: <p>How does one set the image of a UIButton from within the code?</p>
  
  <p>I try the following but it just leaves the button as a white square. </p>
  
  <pre><code>[A1 setImage:[UIImage imageNamed:[NSString stringWithFormat:@"m1.10001.png"]] forState:UIControlStateNormal];
  </code></pre>