title: limit the UILabel to 500 character and than Truncate the UIlabel in IOS
body: <p>I want to display first 500 character in UILabel and than display Truncate icon if there is more than 500 character available.But i dont know how can i limit 500 character to truncate the text?.</p>
  
  <p>Here is my code</p>
  
  <pre><code>label2 = [[UILabel alloc] initWithFrame:CGRectMake(0, 350, self.bounds.size.width, 30)];
     // In this case value of self.bounds.size.width is "427"
  
      label2.backgroundColor = [UIColor clearColor];
      label2.numberOfLines = 2;
      label2.textAlignment = UITextAlignmentCenter;
      label2.font = [UIFont systemFontOfSize:13];
      [self addSubview:label2]
  
           //Here is Implimentation code of my label
  
   NSString *temp = [galleryEntryTree objectForKey:@"description"];// calling lebel text from database
  coverView.label2.text = temp;
  coverView.label2.adjustsFontSizeToFitWidth = NO;
  coverView.label2.lineBreakMode = UILineBreakModeTailTruncation;
  </code></pre>
  
  <p>Just tell me guys how can i display min 500 character and than truncate it( if longer than 500)</p>
  
  <p>Any help is appreciated </p>