title: how to add images in scrollview from another viewController button clicked in ios
body: <p>Two Classes :<br />
  1) DemoPage.h &amp; DemoPage.m And <br />
  2) View1.h &amp; View1.m <br /></p>
  
  <p>DemoPage class has scrollview, <code>view1</code> has 16 buttons, when <code>view1</code>'s <code>button1</code> clicked the <code>image1</code> wants to add in scrollview of DemoPage class.</p>
  
  <p>I used below code but not working:</p>
  
  <pre><code>DemoPage *demoPage = [DemoPage alloc]init];
  demoPage.imgViewForRelax.image=[UIImage imageNamed:@"bird2.png"];
  [demoPage.scrollViewForRelax addSubview:demoPage.imgViewForRelax];
  </code></pre>