Re: how do you suppose targetViewControllerForAction:sender: works?
Re: how do you suppose targetViewControllerForAction:sender: works?
- Subject: Re: how do you suppose targetViewControllerForAction:sender: works?
- From: Matt Neuburg <email@hidden>
- Date: Thu, 09 Oct 2014 10:10:30 -0700
On Oct 9, 2014, at 10:03 AM, glenn andreas <email@hidden> wrote:
> (typed in mail)
>
> if ([[vc class] instanceMethodForSelector: selector] != [[vc superclass] instanceMethodForSelector: selector]) {
> // vc's class implements an instance method that is different from it's superclass - i.e., it has overridden it
> }
>
Yes, I think that's about right. (It isn't the superclass; it looks right at UIViewController, which must also implement the method somehow. But that's minor.) Thanks! Tricky-wicky... m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
_______________________________________________
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