I am trying to add a reverse image to a UITextView. The image is a small border that will be placed at the top of the text view. (the image resembles a torn paper image). I am using the following code
UIImageView *imgView = [[UIImageView alloc]initWithFrame: CGRectMake(0, 0, 320, 13)];
imgView.image = [UIImage imageNamed: @"teared_paper.png"];
[tView addSubview: imgView];
[tView sendSubviewToBack: imgView];
[imgView release];
My text is only 150 pixels tall. (the text view takes up only a small part of the review, and it is at the top of the view so that it is displayed to the user when the keyboard is there)
The problem is that when I add more lines of text, the text view automatically scrolls. And at the same time, the background image that I added also scrolls. How can I prevent the background image from staying on top all the time regardless of scrolling.
source
share