开发者

uiscrollview problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜