ios - Change viewController's height as textView height changes -


i have viewcontroller textview inside scrollview in viewcontrollers view. textviews scrollenabled feature set false , have textview height resizing text entered. works until textview height becomes larger viewcontrollers view height. have view height set freeform , know can set different height. however, have other objects int view , want view load initial default height , resize textview height changes , user can scroll height changes.

is possible?

it's not clear trying do, if want know more uitextview it's delegates, need study how uitextview works:

uitextview *textview

it's uiscrollview, inherits uiscrollview, right? , uiscrollview inherits uiview.

you need know uitextview special view properties frame (from uiview), contentoffset , contentsize (from uiscrollview).

and in inheritance have delegates uitextview (uitextviewdelegate), uiscrollview (uiscrollviewdelegate). inside delegates have lot of methods determine of information want know.

but, don't understand need anyway.