[MonoTouch] UIScrollView: Is it possible to set the default zoome scale?
MilkyJoe
leigh.bowers at curvenet.co.uk
Thu Oct 27 09:01:18 EDT 2011
The UIImageView (a map image) I use is twice as wide as the UIScrollView it
is contained within. When my view renders, the UIScrollView default to
displaying my UIImageView at full size. I.e. Three quarters of the map are
out of view.
I need to default to showing all of the map image, and allowing the user to
zoom in.
Is this possible?
Everything is working other than the default zoom scale when entering the
view. I tried using SetZoomScale, but it appears to have no effect!?
sv.ContentSize = iv.Frame.Size;
sv.MinimumZoomScale = (sv.Frame.Size.Width / iv.Frame.Size.Width);
sv.MaximumZoomScale = 1.0f;
sv.SetZoomScale (sv.MinimumZoomScale, true);
Thanks
--
View this message in context: http://monotouch.2284126.n4.nabble.com/UIScrollView-Is-it-possible-to-set-the-default-zoome-scale-tp3944345p3944345.html
Sent from the MonoTouch mailing list archive at Nabble.com.
More information about the MonoTouch
mailing list