title: UIScrollView setting size
body: <p>I have a <code>UIScrollView</code> (<code>self.scroller</code> in code) and i want to set its size based on the amount of objects in an array, but i get an error when the view appears. error :</p>
  
  <p>Terminating app due to uncaught exception: <code>'NSInvalidArgumentException', reason: '-[__NSCFString setFrame:]: unrecognized selector sent to instance 0x8076080'</code></p>
  
  <p>Here is the code in question :</p>
  
  <pre><code>for (int i = 0; i &lt; [scoresArray count]; i++) 
  {         
          UILabel *scoreLabel = [scoresArray objectAtIndex:i];
  
          CGRect labelPos = CGRectMake(10, i * 50, 300, 50);
  
          [scoreLabel setFrame:labelPos];
  
          [self.scroller setFrame:CGRectMake(0, 90, 320, ([scoresArray count] * 50))];
  
          [self.scroller addSubview:scoreLabel];
   }
  </code></pre>
  
  <p>Am i doing something wrong?, how can i fix it? (I only want to se the height) if that helps.</p>