NevzatR
NevzatR

Reputation: 245

Combine label, textview and image (but image is scroll with text)

I want to create an view that include;

Half of the view is imageview (x:0 y:0 w:320 h:230) other size completely text with scrolling or not. But I don't want to image is fixed position image must scroll with text.

Finally I want to add label on imageview(label is fixed bottom of the imageview,and background transparant)

Should I use ScrollView???

Upvotes: 1

Views: 2999

Answers (3)

Sam
Sam

Reputation: 27354

For the UIImageView, you could put it inside a UIView with clipping turned on. As the UITextView scrolls, change the UIImageView's frame's origin vertically which will give the scroll effect. I implemented a filmstrip knob in this manner and it worked out great. The label can go in the view containing the UIImageView. It will remain fixed since you would only be changing the ImageView's origin.

Upvotes: 0

CNSivakumar
CNSivakumar

Reputation: 1043

follow the step view -> scrollview -> tableview Inside tableview Header part used for UItextview and UIimageview for footer and if u place a label in imageview.

Upvotes: 2

StuStirling
StuStirling

Reputation: 16191

Scroll view is what your looking for. Put the imageview inside it along with the text view below it then they will both scroll together

Upvotes: 0

Related Questions