I’m trying to add a header over a UITextView. The code that I have right now adds a header, which is visible initially, but it becomes hidden as soon as the user scrolls (it has pull down to refresh feel to it).
I’m looking to make my UITextView draw text 90 pixels lower than normal, and draw the header above text, starting at the origin. How can this be done?
Currently I have:
[self.textViewWithHeader addSubview:self.headerView];
self.headerView.center = CGPointMake(160,-50);
self.salesCopyTextField.contentOffset = CGPointMake(0,-90);
This shows a header over text, but it is clipped off by the bounds of the scrollview.
Thank you for your help!
I ended up using a plain
UITableViewwith the first cell being a header. The second cell includes a UITextView with it’s height dynamically calculated to match the height of theUITextView. TheUITextViewhas scrolling disabled, only leaving theUITableView'sscrolling. There’s a weird behavior of scrolling as the user taps the text view to edit it, but I don’t think that’s a major issue