Skip to content

Instantly share code, notes, and snippets.

@michaeleisel
Created January 12, 2019 23:57
Show Gist options
  • Save michaeleisel/41c8b277f088abb0e2081b30302f0ab3 to your computer and use it in GitHub Desktop.
Save michaeleisel/41c8b277f088abb0e2081b30302f0ab3 to your computer and use it in GitHub Desktop.
#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