title: Creating a custom UITableViewCell with horizontal scroll using Interface Builder and as little code as possible
body: <p>We are implementing a table that contains a few cells that need to be able to scroll horizontally.</p>
  
  <p>We managed to make this work programatically by adding the UIScrollView to the cell's contentView using code similar to this one:</p>
  
  <pre><code>UIScrollView *horizScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 200)];
  horizScrollView.contentSize = CGSizeMake(2000, 100);
  UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 500, 80)];
  [label setText:@"horizontal scroll sample"];
  [horizScrollView addSubview:label];
  [cell.contentView addSubview:horizScrollView];
  </code></pre>
  
  <p>But it does not work if the ScrollView is added using Interface Builder and creating an IBOutlet to be able to implement whatever remaining code is left (set the ScrollView's contentSize for example). The custom cell's NIB structure looks like this in IB (sorry, it looks crude but I can't post images yet):</p>
  
  <pre><code>Horizontal Scroll Cell
  |- Content View
     |- Scroll View
        |- Label
  </code></pre>
  
  <p>All solutions regarding this scenario we have seen are code related.</p>
  
  <p>Does anyone know if the Interface Builder approach is viable, and if not, why is it not possible? </p>