title: How to use action and outlet for same button
body: <p>I have a like button having an image to it and i have to put some action in that button after tapping it, action such as getting likes count and showing it out on that button (likes count). Doing this i am getting an error that outlets cannot be connected to the repeating content.Suggest me something how would i do that.</p>
  
  <pre><code>// here is my code how i am doing it but its giving me storyboard error
  
  - (IBAction)likeButtonAction:(id)sender {
  
      if(_likeButtonOutlet.selected) {
  
          NSManagedObject *record = [self.fetchedResultsController valueForKey:@"total_likes"];   
  
          //here on the above line i am fetching the count of likes and below i am sitting it to the button outlet
  
          [_likeButtonOutlet setValue:record forKey:@"total_likes"];
  
      }
  
  }
  </code></pre>