Timothy Rajan
Timothy Rajan

Reputation: 1957

UITextview not getting completely filled with the text in IPhone

In my app, I have a UITextView. When I key in data in the UITextView, the words are not getting completely filled in the UITextview. There is a boundary within the UITextView and the words scroll up as I key in the words. Is there a setting which I am missing in UITextView. Please let me know. Please find the screenshot below

enter image description here

Upvotes: 0

Views: 230

Answers (1)

Julian
Julian

Reputation: 9337

You can set a frame and a contentSize as it inherits from the UIScrollView to make it bigger. I do not have access to IDE right now but something like this should work:

myTextView.frame = CGRectMake(10,10,300,300);//example values
myTextView.contentSize = CGSizeMake(300,300);//example values

but sooner or later you want be able to see the whole text on the screen and you will need to scroll anyway.

You can also change this values while user is typing by using some delegate methods

Upvotes: 1

Related Questions