title: Add same subview multiple times to view
body: <p>I don't know if this is possible, but what I would like to do is add a subview several times to the view. I have tried something like this:</p>
  
  <pre><code>[self.view addSubview: newView];
  newView.center = CGPointMake(160, 100);
  [self.view addSubview: newView];
  newView.center = CGPointMake(160, 200);
  [self.view addSubview: newView];
  </code></pre>
  
  <p>All this does is move <code>newView</code> around, without adding new ones. Any ideas?</p>
  
  <p>I also tried this:</p>
  
  <pre><code>[self.view addSubview:newView];
  UIView *anotherView = newView;
  anotherView.center = CGPointMake(160, 100)
  [self.view addSubview:anotherView];
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <p><strong>Here's a solution I've learned with time</strong></p>
  
  <p>Another way to solve the problem would be to make a separate nib containing the view and add instances of the nib several times. A good template to work off to implement this solution is to do it the same way a custom <code>UITableViewCell</code> is used in the <code>cellForRowAtIndexPath</code> method.</p>