title: How to truncate UITextView contents to fit a reduced size?
body: <p>I'm having real trouble getting my head around this issue.</p>
  
  <p>As the title suggests, I have several UITextViews on a view in an iPhone application. I am programmatically creating them and successfully filling that textview with text, but in some cases the text I put in the view takes up more space than the frame I allocate for it. In this case I would like the text to be truncated, but I can't figure out how to do it.</p>
  
  <p>I have predefined the following constants;</p>
  
  <pre><code>#define viewOriginX  20
  #define viewOriginY 180
  </code></pre>
  
  <p>Here is my UITextView creation code;</p>
  
  <pre><code>textViewOne = [[UITextView alloc] initWithFrame:CGRectMake(viewOriginX, viewOriginY + 65, 280, 45];
  textViewOne.delegate = self;
  textViewOne.scrollEnabled = NO;
  textViewOne.contentInset = UIEdgeInsetsZero;
  textViewOne.font = viewFont;
  textViewOne.textColor = [UIColor blackColor];
  textViewOne.textAlignment = UITextAlignmentLeft;
  [self.view addSubview:textViewOne];
  </code></pre>
  
  <p>In some cases I have 15 to 20 lines of text in here and I would like to truncate it to 2 lines.</p>
  
  <p>Can anyone help me in the right direction?</p>
  
  <p>Thanks in advance! :D</p>