I\'m working on creating a UIView subclass (which I\'m calling MarqueeLabel) that animates a subview UILabel ivar in a marquee fashion when the UILabel text is too long for the containing view.
I need to create an object in one class hierarchy that wraps an object from a different one. They both have very similar interfaces, and I\'d like to automatically have my wrapper forward messages it
I know that I can forward message开发者_JAVA百科s to instances of a class using -forwardInvocation:. Can I do the same for messages sent to a class object (as in +forwardInvocation:)?Looks like I can.
Can anyone give a brief explanation of how to use message forwarding? Links Apple documentation: Apple documentation tends to be good as a reference, but lengthy enough to not be the b开发者_运维问