title: Disabling a button in iOS
body: <p>I need to disable a button if the key does not exist in the dictionary. I have used the setEnabled functionality of the UIButton but the image that has been set default still appears.</p>
  
  <p>The code looks like this:</p>
  
  <pre><code>if([self.InfoDictionary objectForKey:ButtonExist])
  {
      [button1 setEnabled:YES];
  }
  else
  {
      [button1 setEnabled:NO];
  }
  </code></pre>
  
  <p>The image still appears when I run in the simulator. Need some guidance on this.</p>