开发者

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

I want to create an view that include;

  • UITextView
  • UILabel
  • UIImageView

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(开发者_JAVA百科label is fixed bottom of the imageview,and background transparant)

Should I use ScrollView???


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.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜