Im using a custom made class with delegate methods written in objective-c in a swift file. Bridging header is setup thus I am able to refer to classes in .m and .h files in .swift files. Here comes a problem, I was trying to include delegate method to the swift file, and it shows me message Type 'YourClassName' does not conform to protocol 'YourDelegateWrittenInObjC'. When I Command + Left Click on the error message, some message with gray background comes out on the delegate method.
Wish someone could help me solving this problem. A print screen is provided to help debug:
Edited (include delegate declaration):
Here you go:
@protocol CollapseClickDelegate
@required
-(int)numberOfCellsForCollapseClick;
-(NSString *)titleForCollapseClickAtIndex:(int)index;
-(NSString *)leftTitleForCollapseClickAtIndex:(int)index;
-(NSString *)rightTitleForCollapseClickAtIndex:(int)index;
-(UIView *)viewForCollapseClickContentViewAtIndex:(int)index;
@optional
-(UIColor *)colorForCollapseClickTitleViewAtIndex:(int)index;
-(UIColor *)colorForTitleLabelAtIndex:(int)index;
-(UIColor *)colorForTitleArrowAtIndex:(int)index;
-(void)didClickCollapseClickCellAtIndex:(int)index isNowOpen:(BOOL)open;
@end