• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simulating sublayers in CATiledLayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simulating sublayers in CATiledLayer


  • Subject: Re: Simulating sublayers in CATiledLayer
  • From: Sandor Szatmari <email@hidden>
  • Date: Tue, 25 Mar 2014 07:14:40 -0400

Remco,

I don't know if zooming the layer counts as a change in the layer's bounds, but if your not already doing so, you could try calling -setNeedsDisplayOnBoundsChange: with YES.

Sandor

> On Mar 25, 2014, at 4:56, Remco Poelstra <email@hidden> wrote:
>
> David Duncan schreef op 24-3-2014 20:41:
>>> On Mar 22, 2014, at 2:18 AM, Remco Poelstra <email@hidden <mailto:email@hidden>> wrote:
>>>
>>> How can I make sure that some custom drawing method get's called?
>>
>> Call -setNeedsDisplay on the layer (layers are valid by default)
>
> Hi,
>
> I tried that, but it only draws the layer once. When I zoom in, the content becomes pixelated. I tried to subclass CATiledLayer and override -setAffineTransform to set the contentsScale of all sub layers depending on the current transform, but that gives all sorts of drawing errors.
> Is there a way to keep the custom drawn content sharp? Like with CAShapeLayers?
>
> Thanks in advance.
>
> Kind regards,
>
> Remco Poelstra
>
> _______________________________________________
>
> 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

_______________________________________________

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


  • Follow-Ups:
    • Re: Simulating sublayers in CATiledLayer
      • From: Remco Poelstra <email@hidden>
References: 
 >Simulating sublayers in CATiledLayer (From: Remco Poelstra <email@hidden>)
 >Re: Simulating sublayers in CATiledLayer (From: David Duncan <email@hidden>)
 >Re: Simulating sublayers in CATiledLayer (From: Remco Poelstra <email@hidden>)
 >Re: Simulating sublayers in CATiledLayer (From: Remco Poelstra <email@hidden>)
 >Re: Simulating sublayers in CATiledLayer (From: David Duncan <email@hidden>)
 >Re: Simulating sublayers in CATiledLayer (From: Remco Poelstra <email@hidden>)

  • Prev by Date: Re: Simulating sublayers in CATiledLayer
  • Next by Date: Re: Simulating sublayers in CATiledLayer
  • Previous by thread: Re: Simulating sublayers in CATiledLayer
  • Next by thread: Re: Simulating sublayers in CATiledLayer
  • Index(es):
    • Date
    • Thread