'Unable to access protocol methods via delegate
While accessing protocol methods via delegate I'm getting following error: "No known instance method for selector 'lostConnection'"
Swift Protocol:
@objc protocol GameDelegate {
func lostConnection()
}
Objective C game file
//game.h
@protocol GameDelegate;
@interface SSStreamManager : NSObject
@property (assign) id<GameDelegate> delegate
@end
Getting error while calling protocol methods
[self.delegate lostConnection]; // No known instance method for selector 'lostConnection'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
