Re: layer contents briefly appearing stretched when resizing

2011-02-02 Thread Roland King
thanks Matt, I did see your message and I did try layoutSublayersOfLayer: (I assume that works because the UIView is automatically the CALayer's delegate) and I still have the problem. However I agree your simple example is the equivalent of what I'm doing, and I just compiled a version of it, a

Re: layer contents briefly appearing stretched when resizing

2011-02-02 Thread Matt Neuburg
I really think you ought to try what I said. I just did and I'm not seeing any flash. Here's my code: - (IBAction) doButton: (id) sender { // toggle view size CGRect f = self->mmview.frame; if (f.size.height == 200) { f.size.height = f.size.width = 100; self->mmview.frame

Re: layer contents briefly appearing stretched when resizing

2011-02-02 Thread Roland King
On 02-Feb-2011, at 1:38 AM, David Duncan wrote: > On Feb 1, 2011, at 4:32 AM, Roland King wrote: > >> I have a UIView subclass in my iOS app and the content for that UIView is 3 >> CALayers, each with a bitmap image for their content, added as sublayers of >> the UIView's layer. Each of the CA

Re: layer contents briefly appearing stretched when resizing

2011-02-01 Thread Matt Neuburg
On Tue, 1 Feb 2011 20:32:27 +0800, Roland King said: >I have a UIView subclass in my iOS app and the content for that UIView is 3 >CALayers, each with a bitmap image for their content, added as sublayers of >the UIView's layer. Each of the CALayers is the full size of the UIView's >layer (they

Re: layer contents briefly appearing stretched when resizing

2011-02-01 Thread David Duncan
On Feb 1, 2011, at 4:32 AM, Roland King wrote: > I have a UIView subclass in my iOS app and the content for that UIView is 3 > CALayers, each with a bitmap image for their content, added as sublayers of > the UIView's layer. Each of the CALayers is the full size of the UIView's > layer (they ha

layer contents briefly appearing stretched when resizing

2011-02-01 Thread Roland King
I have a UIView subclass in my iOS app and the content for that UIView is 3 CALayers, each with a bitmap image for their content, added as sublayers of the UIView's layer. Each of the CALayers is the full size of the UIView's layer (they have transparency to composite them together). When the