title: programmatically adding textview
body: <p>Usually I do all of the creation of views in storyboard but now I need to add a view via code and although I understand the very basics of doing one, I need some help on how I go about setting up views but more than that I need to get them placed inside and existing view and also create multiple items. So I will have a parent UIScrollView and inside of that one I need to be able to create up to x additional blocks each block containing two lables and one textview. Something along these lines</p>
  
  <p>I can use the storyboard to create the Parent ScrollView</p>
  
  <p>ParentSCROLLVIEW</p>
  
  <p>child_1_block</p>
  
  <p>lable_1_1</p>
  
  <p>label_1_2</p>
  
  <p>textview_1</p>
  
  <p>child_2_block</p>
  
  <p>lable_2_1</p>
  
  <p>label_2_2</p>
  
  <p>textview_2</p>
  
  <p>child_3_block</p>
  
  <p>lable_3_1</p>
  
  <p>label_3_2</p>
  
  <p>textview_3</p>
  
  <p>child_4_block</p>
  
  <p>lable_4_1</p>
  
  <p>label_4_2</p>
  
  <p>textview_4</p>
  
  <p>.
  .
  .</p>
  
  <p>child_x_block</p>
  
  <p>lable_x_1</p>
  
  <p>label_x_2</p>
  
  <p>textview_x</p>
  
  <p>I am trying to create just a single one now but I am not sure of the syntax to place it inside of an existing scrollview currently it is going into the main view working on that right now. The other confusing this I have been thinking about is teh creation of a dynamic amount of the same type of objects are is the object name determined if it is going to be dynamic</p>
  
  <pre><code>UITextView *newTextView = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 300, size.height + 16)];
  </code></pre>
  
  <p>Currently I use this to create a new textview but I will need to do the same thing for multiple entities</p>
  
  <p>such as *newTextView1, *newTextView2, *newTextView3, *newTextView4, ..., *newTextViewX</p>
  
  <p>Am I able to construct a string with the appended number and then use that string as the name of the object I need to create...never did that before so I am not sure but I have a feeling I would see errors </p>
  
  <p>I am hoping some one could show me some sample code or point me in the right direction or even suggest what the correct terms I can search for...anything would be helpful</p>
  
  <p>Jeff</p>