• 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: Little suggestion for many many images app, best approach.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Little suggestion for many many images app, best approach.


  • Subject: Re: Little suggestion for many many images app, best approach.
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 20 Nov 2010 09:44:42 -0800

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 = email@hidden, 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 (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

References: 
 >Re: Little suggestion for many many images app, best approach. (From: Matt Neuburg <email@hidden>)
 >Re: Little suggestion for many many images app, best approach. (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: unit test exit's abnormally with code 5
  • Next by Date: Re: Custom NSCell and target/action
  • Previous by thread: Re: Little suggestion for many many images app, best approach.
  • Next by thread: NSExpression is incorrect?
  • Index(es):
    • Date
    • Thread