On Nov 20, 2010, at 7:48 AM, Gustavo Pizano wrote:

> Matt hi.
> 
> Thanks for the reply..
> 
> I follow your suggestion and see hoe the app behaves using UIViews only... if 
> it doesn't behave as expected then I will use CALayers instead... I just need 
> to reread about them  because I know that one case of CALayer doesn't call 
> its draw methods

I'm not sure what you mean, but in general (1) a view on iOS *is* a layer - 
I've heard it said that a view is merely a layer plus touchability - and (2) 
layers (and therefore views) do not redraw unless they have to, which usually 
means, because you tell them to. If a layer isn't redrawing when you need it to 
redraw, that's because you didn't tell it that you needed it to redraw.

> I guess you mean using the hitTest: method on the main view's CALayer

Right; the purpose of this method is to let you simulate touchability for a 
sublayer. But, as I said before, you won't do this unless performance forces 
you to do it; if you need all those pictures to be touchable, it's going to be 
a lot easier if they are all views.

m.

--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com


_______________________________________________

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

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

Reply via email to