-
-
Save michaeleisel/41c8b277f088abb0e2081b30302f0ab3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
@interface ViewController () | |
@end | |
@interface asdf : NSObject | |
@end | |
@implementation asdf | |
- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector | |
{ | |
return [super methodSignatureForSelector:aSelector]; | |
} | |
- (void)forwardInvocation:(NSInvocation *)anInvocation | |
{ | |
NSLog(@"yo"); | |
[super forwardInvocation:anInvocation]; | |
} | |
- (void)go | |
{ | |
NSLog(@"bro"); | |
} | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
[[[asdf alloc] init] go]; | |
// Do any additional setup after loading the view, typically from a nib. | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment