Your question is not entirely clear, so this might be the answer:
UITextView *textView ; textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 400, 50)] ; NSString *myMultilineString = [NSString stringWithFormat:@"nanan %d \nline2 %f\nline3 %@", 5, 1.45f, self] ; textView.text = myMultilineString ; textView.userInteractionEnabled = NO ; [self.view addSubview:textView] ;
source share