How to enable scrolling for UITextView when building software
I created a UITextView programmatically and want to enable scrolling for this UITextView.
Is there any property or method for doing this because it is not enabled by default. I am using the following code which displays it but does not scroll to the bottom.
UITextView* txt_tipView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 165, 60)];
txt_tipView.backgroundColor = [UIColor clearColor];
txt_tipView.textColor = [UIColor colorWithRed:(51/255) green:(51/255) blue:(51/255) alpha:1];
txt_tipView.font = [UIFont fontWithName:@"Helvetica" size:12];//[UIFont boldSystemFontOfSize:12];
txt_tipView.editable = FALSE;
txt_tipView.frame = CGRectMake(138, 96, 165, 60);
[self.view addSubview:txt_tipView];
+2
source to share