Re: Simulating sublayers in CATiledLayer
Re: Simulating sublayers in CATiledLayer
- Subject: Re: Simulating sublayers in CATiledLayer
- From: Remco Poelstra <email@hidden>
- Date: Tue, 25 Mar 2014 18:55:15 +0100
Op 25 mrt. 2014 om 17:59 heeft Kyle Sluder <email@hidden> het volgende geschreven:
>> On Mar 25, 2014, at 9:50 AM, Remco Poelstra <email@hidden> wrote:
>>
>> I've tried with both CALayer and CATiledLayer sublayers, but the CATiledLayer also did not redraw (at higher resolution) when its parent layer has a transform.
>
> Sounds like your solution involves ceasing the use of transforms for zooming.
Well, the parent CATiledLayer (the UIViews's layer) uses transforms for zooming, but that isn't communicated down the sublayers. The context of the sublayers is simply scaled.
All I've done is set the UIView layer class to CATiledLayer. Add the UIView to a UIScrollview. And added sub CA(Tiled)Layers to the CATiledLayer of the UIView.
The transform is applied to the root layer, and not to the sublayers.
Remco
_______________________________________________
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