Reputation: 245
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
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
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
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