> On May 11, 2016, at 1:51 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> 
> wrote:
> 
> On May 11, 2016, at 1:45 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> 
> wrote:
>> 
>>> On May 11, 2016, at 1:38 PM, David Duncan <david.dun...@apple.com> wrote:
>>> 
>>>> On May 11, 2016, at 1:32 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> 
>>>> 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).
>> 
>> Right, I was hoping there was a way to initially programmatically pinch the 
>> view down by 10%, so the view's frame isn't reduced as well. Then the user 
>> can pinch it to zoom in/out as desired.
> 
> Would it help if I changed my UIView to be a UIScrollView instead? Then I 
> could use -setZoomScale:.

I just tried UIScrollView & -setZoomScale:. No effect.
-Carl



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to