title: Change x and y position of UIScrollview dynamically in iPhone
body: <p>I have used UIScrollView named "scrMainView".
  I have defined its property in .xib file as x=0, y=260, width=320, height=1860.</p>
  
  <p>So now Button click event, I want scrollview up. ie. y=80. rest of parameters remain as it is.</p>
  
  <p>I have used code :</p>
  
  <pre><code>[scrMainView scrollRectToVisible:CGRectMake(0,-180, 320, 2800) animated:NO];
  
  scrMainView.contentOffset = CGPointMake(0, -180);
  </code></pre>
  
  <p>I have used either of both lines. But it give same output as it focuses scrollview.
  But I want to change Y position. So ScrollView appears more upside on screen area.</p>
  
  <p>I have defined in property in .xib already. So will this effect on dynamic code..?</p>
  
  <p>Any Solution..?</p>
  
  <p>Thanks.</p>