title: Creating reusable views in Storyboard
body: <p>I have recently started to develop apps for the iOS platform after having a break from it. During the break I have been programming a lot of Java Swing applications and I am baffled by the fact that there are so hard to create reusable views in iOS.</p>
  
  <p>Our team created small reusable GUI components for "everything". The container view that was introduced some versions ago doesn't help in all situations since you can't embed it in for instance a <code>UITableViewCell</code> if the table is dynamic. </p>
  
  <p>People are writing about don't use XIB's anymore, use Storyboard (blah blah). It makes me worried when use code like this for my reusable views:</p>
  
  <pre><code>[[NSBundle mainBundle] loadNibNamed:@"MyView" owner:self options:nil];
  [self addSubview: self.contentView];
  </code></pre>
  
  <p>So I wonder, what is the state of reusable views by the end of year 2015? Is this the way to do it or are there better ways now?</p>
  
  <p><em>(And of course I use Swift now, I am just copy-pasting from an old project)</em></p>