title: How can I rezise a subview inside of an UIScrollView?
body: <p>My app is built like this (i cannot post images)</p>
  
  <pre><code>UIViewController  
  |  
  |----UIView  
       |  
       |----UIScrollView   
            |  
            |----UIView (here are added my buttons, called contentView)
  </code></pre>
  
  <p>I would like to add buttons dinamically, depending on WebService response. I add these buttons programatically and it goes well, but the views lack space. To acomplish that goal, I have to resize the view in order to show correectly these new icons, but I cannot get the desired effect. What should I do to do this? Please, pardon my poor English xD.</p>
  
  <p>== EDIT ==</p>
  
  <p>Here is the code where I am adding some UISwitch to the contentView</p>
  
  <ol>
  <li>UISwitch *switchDebito=[[UISwitch alloc] initWithFrame:CGRectMake(260,
  1080+(cantidadNotificacionesEnconrtadas * 35), 50, 35)];</li>
  <li>[switchDebito setOn:notification.NotificationDebit];</li>
  <li>[self.contentView addSubview:switchCredito];</li>
  </ol>
  
  <p>In line 1 I create the switch, increasing its height eventually (not really important)
  Line 2 is pointless
  Line 3: here we add the switch to the contentView</p>