title: Hard Coding a button to an IBAction in xcode
body: <p>when I google the title of my question I get another stackoverflow question that was answered that has been really helpful and explains most of what I need to do with hard coding a button. The problem is that when it is tied to an action it resembles this...</p>
  
  <p>[btnDetail setImage:[UIImage imageNamed:@"btn-detail.png"] forState:UIControlStateNormal];</p>
  
  <p>Im looking to tie the button directly to an IBAction that I've already created called exitMovie so I was hoping to do something like this...</p>
  
  <p>[button setAction: [IBAction.exitMovie] forState:UIControlStateNormal];</p>
  
  <p>or something like that but nothing I have tried has worked. How do I do this correctly?</p>
  
  <p>below is the link to the the aforementioned hardcode that I used for the most part.
  <a href="https://stackoverflow.com/questions/2544279/can-you-hard-code-ibactions-and-iboutlets-in-xcode-rather-then-drag-them-manuall">Can you hard code IBActions and IBOutlets, rather than drag them manually in Interface Builder?</a> </p>