title: How to add multiple UIViews in a UIScrollView without programmatically
body: <p>I have a question how to add UIScrollView in UIView.
  I want to add uiview in uiscrollview using forloop without programmatically.</p>
  
  <pre><code>int x=0;
  int y=0;
  for (int i=0; i&lt;=arr_trycelist.count; i++)
  {
      [self.scroll addSubview:_subview];
      _view_design.frame=CGRectMake(x, y, 320, 200);
      _scroll.contentSize=CGSizeMake(320, y);
      y=y+200;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/kjsFS.png" alt="enter image description here"></p>