title: how to add uiview in uiscrollview iphone/ipad
body: <p>I want to add a custom uiview in my viewcontroller scroll view. and i am using below code but it not working. and not adding my viewThumbnail in scrollview.
  my viewThumbnail contains a imageview.</p>
  
  <pre><code>for (int i=0; i&lt;10; i++) {
  
          viewThumbnail *objTemp =[[viewThumbnail alloc] init];
          objTemp.frame = CGRectMake(i*165, 0, 126, 161);
          [self.scrlViewRecent addSubview:objTemp];
  
      }
  [scrlViewRecent setContentSize:CGSizeMake((161 + 10)*10, 180)];
  </code></pre>
  
  <p>and if i use below code then it added blank view instead of viewThumbnail object</p>
  
  <pre><code>viewThumbnail *headContentView = [[viewThumbnail alloc] initWithFrame:CGRectMake(i*161 + (i*10), 0, 161, 140)];
          [headContentView setBackgroundColor:[UIColor brownColor]];
          [self.scrlViewRecent addSubview:headContentView];
  </code></pre>
  
  <p>So please suggest me where i am doing wrong.
  Thx</p>