开发者

How to set initial location for image (iphone)

I have a UIImageView along with a UIScrollView. They are both setup correctly and everything is working fine. However, when the view is loaded, it puts up pixel location (0,0) as t开发者_如何学Gohe starting point (i.e. the view is top left of the image).. How do I set it up such that only on a viewDidLoad it starts at pixel location say (1000,1000) of the image? I do not care what happens after the user scrolls or zooms in/out

Much obliged.


[UIScrollView setContentOffset:CGPointMake(1000.0, 1000.0)];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜