-->

Header View for a UITextView?

2020-04-10 00:54发布

问题:

I want to have a custom view at the top of my UITextView that will scroll with the text view, so it is only visible when the text view is scrolled to the very top. Can this be done? I was thinking that because it is a subclass of UIScrollView there may be something that can be done.

Thanks!

回答1:

Have you tried changing the contentInset / contentOffset / contentSize properties, inherited from UIScrollView?