开发者

uiscrollview problem

开发者 https://www.devze.com 2023-03-02 14:27 出处:网络
I have a view over which i take a scroll view in which i make a small draggable image . now i want to set the image in content view of the scroll view ..开发者_如何学Go.how can i

I have a view over which i take a scroll view in which i make a small draggable image . now i want to set the image in content view of the scroll view ..开发者_如何学Go.how can i plz help


[scrollView addSubview:yourImageview];

should add the image view to your scrollview. Make the contentSize of the scrollView according to your needs(yourImage.size should do it I guess).


scrollView.contentSize = imageview.size;
[scrollView addSubView:imageView]
0

精彩评论

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

关注公众号