FBLikeActionController.h , , :
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(facebookLikeNotification:) name:@"FBLikeActionControllerDidUpdateNotification" object:nil];
. lldb pragmas undefined:
- (void)facebookLikeNotification:(NSNotification*)notification {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
SEL selector = @selector(objectIsLiked);
if (notification.object && [notification.object respondsToSelector:selector]) {
BOOL (*BOOLMsgSend)(id, SEL) = (typeof(BOOLMsgSend)) objc_msgSend;
BOOL isLiked = BOOLMsgSend(notification.object, selector);
DDLogDebug(@"is liked: %d",isLiked);
}
#pragma clang diagnostic pop
}