Created
August 30, 2019 16:22
-
-
Save cyborch/4943be5cc89e76390aae7dd6c8e3eda1 to your computer and use it in GitHub Desktop.
This file contains 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 "AppServicesSwift-Swift.h" | |
@implementation AppDelegate (Forward) | |
- (void)forwardInvocation:(NSInvocation *)anInvocation | |
{ | |
for (UIResponder<UIApplicationDelegate> *service in self.services) { | |
if ([service respondsToSelector: anInvocation.selector]) { | |
[anInvocation invokeWithTarget: service]; | |
} | |
} | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment