title: Using the same view controller multiple times
body: <p>I'm new to Objective-C and have a question. Did the search multiple times but I couldn't find what I was looking for.</p>
  
  <p>I'm using storyboard for this app. On the homescreen you've got some buttons with labels above them. Those labels should tell a number. When pushing the button you go to a new viewController where you have input that (after 'save') goes back to the homescreen and updates the label with the correct number. All that works great for <strong>one button</strong> and I'm very happy about it. </p>
  
  <p>The problems are: </p>
  
  <p><strong>1.</strong> Since I have multiple buttons with labels, I want to use the same viewController to give input over and over again. I tried connecting every button to slide to the viewController under the identifier "AddData", but Xcode doesn't allow the same identifiers twice or more in storyboard. So I would need something else for this. Any idea?</p>
  
  <p><strong>2.</strong> Currently I use the following code to bring back the data to the homescreen:</p>
  
  <p>homeScreenViewController</p>
  
  <pre><code>- (IBAction)unwindToHomeScreen:(UIStoryboardSegue *)segue;
  {
      inputDataViewController *source = [segue sourceViewController];
      self.logoOneLabel.text = source.endTotalNumber;
  }
  </code></pre>
  
  <p>inputDataViewController:</p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  {
      if (sender != self.saveButton) {
          return;
      } else {
          if (endTotalLabelNumber &gt; 0) {
              self.endTotalNumber = [NSString stringWithFormat:@"%.0f", totalLabelNumber + endTotalLabelNumber];
          } else if (endTotalLabelNumber == 0 &amp;&amp; totalLabelNumber == 0){
              self.endTotalNumber = 0;
          } else {
              self.endTotalNumber = [NSString stringWithFormat:@"%.0f", totalLabelNumber + endTotalLabelNumber];
          }
  
      }
  }
  </code></pre>
  
  <p>This works great for the one button, but how to use this with multiple? I heard about Delegates to use the same viewController multiple time and get data back to different places, but I just don't get it. Any help?</p>