Re: Programmatically pinch a UIView
Re: Programmatically pinch a UIView
- Subject: Re: Programmatically pinch a UIView
- From: David Duncan <email@hidden>
- Date: Wed, 11 May 2016 13:38:48 -0700
> On May 11, 2016, at 1:32 PM, Carl Hoefs <email@hidden> wrote:
>
> In iOS 9.3, I have a UIView that displays a graph, and the view is pinchable. That works fine but I want to programmatically pinch the UIView so the default display initially shows the graph a bit smaller. How can I do this? Alternately, I've tried setting self.view.contentScaleFactor but this property seems to have no effect.
contentScaleFactor determines the pixel : point relationship when using -drawRect: on a view. You want to set the transform for something like this (note that this will affect the view’s frame as well).
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden