Permalink
Browse files

Update ADVAlertView.m

Simplified implementation of ProtocolContainsSelector()
  • Loading branch information...
1 parent 4a3f5e3 commit c60f47355a54a86c6bbc0be71e656d79a1d6c0c4 @advantis committed Aug 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ADVAlertView.m
View
@@ -16,7 +16,7 @@
static inline BOOL ProtocolContainsSelector (Protocol *protocol, SEL selector)
{
- return sel_isEqual(selector, protocol_getMethodDescription(protocol, selector, NO, YES).name);
+ return NULL != protocol_getMethodDescription(protocol, selector, NO, YES).name;
}
@implementation ADVAlertView

0 comments on commit c60f473

Please sign in to comment.