Alede
Alede

Reputation: 381

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 the 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.

Upvotes: 0

Views: 159

Answers (1)

Cyrille
Cyrille

Reputation: 25144

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

Upvotes: 1

Related Questions