core animation - Can you add a property at run-time when coding with Objective-C -


I was wondering whether to dynamically add an object object, for instance, at run-time possible?

My initial consideration just needs to override getValueForKey on "mock" property, but it seems that it does not work with core animation. What I want to achieve is to be able to animate the custom properties. If I create subclasses of CALayer and add the declared properties to my subclass, then I have been able to work if I try to use the getValueForKey / setValueForKey strategy, it seems that CoreAnimation does not care for it and It is looking for clearly declared qualities.

I want to add properties dynamically because I do not know which property I want to animate to runtime, I can definitely create a CALayer subclass in which there are all the qualities that I have ever used animate I just wanted to ... but just wondering if this is a good way to do this ...

Thanks,

Peter

Have you tried overriding value more defined: instead? (I can do this on a custom NSObject subclass, which may have different properties whose names have been extracted from the database.)


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -