title: Resizing a UIView on iPhone at run-time
body: <p>I'm trying to resize my app's view whenever an iAd is scrolled down from the top.
  The problem is that in run-time, when i set the resized frame size of the relevant view, the resizing doesnt happen 9so the iAd is draw on top of the top 50 vertical pixels).</p>
  
  <p>If I set the UIView size at design-time, then I see that the view is resized (when i run the app).</p>
  
  <p>So what am i doing wrong at run-time that is causing my resizing to not occur?</p>
  
  <p>The structure of my controller's NIB looks like this:</p>
  
  <pre><code>&gt; &gt; View
  
  &gt;   &gt; View (associated with IB 'contentView')
  
  &gt;     &gt; CustomView (UIView)
  
  &gt;        - ScrollView
  
  &gt;        - Toolbar (top)
  
  &gt;        - Toolbar (bottom)
  </code></pre>
  
  <p>In code the adBannerView is added like this:
  [self.view addSubView:adBannerView];</p>
  
  <p>conteView's origin.y and size.height is what im updating (to make it y = 50, and height = original height - 50). This should scale it down so that enough room is made to dispaly the banner on top (50 pixels in height).</p>