hi, i have a problem about changing the size of textview.
i try to create a textview programatically. Than fill it from different txt files for every row selected in my table. i want to make my scrollview's height equal to textview's height.
well, basically how can i make a textview's height to fit exactly to the text size.
thanks for helps.
Code:
UITextView *yazi = [[UITextView alloc] initWithFrame:CGRectZero];
yazi.text = [NSString stringWithContentsOfFile:hayat encoding:NSUTF8StringEncoding error:nil];
[yazi setFrame:CGRectMake(0, 245, 320, yazi.contentSize.height)];
scrollview.contentSize = CGSizeMake(320, yazi.contentSize.height);
i try to create a textview programatically. Than fill it from different txt files for every row selected in my table. i want to make my scrollview's height equal to textview's height.
well, basically how can i make a textview's height to fit exactly to the text size.
thanks for helps.
Last edited by a moderator: