Skip to content

Commit

Permalink
Forwarding conformsToProtocol method to delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
shoby committed Apr 25, 2014
1 parent 2758294 commit a920dd5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NJKScrollFullScreen/NJKScrollFullScreen.m
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,13 @@ - (BOOL)respondsToSelector:(SEL)aSelector
return ret;
}

- (BOOL)conformsToProtocol:(Protocol *)aProtocol
{
BOOL ret = [super conformsToProtocol:aProtocol];
if (!ret) {
ret = [_forwardTarget conformsToProtocol:aProtocol];
}
return ret;
}

@end

0 comments on commit a920dd5

Please sign in to comment.