开发者

How to set initial location for image (iphone)

开发者 https://www.devze.com 2023-03-18 18:54 出处:网络
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 st

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

精彩评论

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