title: How do I call a -(void) method from a -(IBaction) method?
body: <p>I have a void method that is responsible for a URL and I want to call it using a IBAction (UIbutton) to update/ change the URL and thus the content of my view.</p>
  
  <pre><code>- (void) retrieveData {
     _NSMutableDictionary = contains parts of the url 
     NSString * thisUrlGetsPutTogetherFromKeysInTheMutableDict = @"www.myurl.url";
  }
  
  
  -(IBAction)btnChangeUrl:(UIButton *)sender {
     ADD something to the _NSMutableDictionary
     Call "retrieveData" to update and re-load the URL.
  } 
  </code></pre>
  
  <p>I've tried googling for answers before but I just can't seem to find clear instructions on how I should call retrieveData. Still a beginner. Can somebody help me out?</p>