Permalink
Browse files

Merge pull request #19 from 0xced/develop

Fixed crash when displaying help
  • Loading branch information...
2 parents 0f45405 + 2fd0a1d commit 8c060cfad8da73728706c4f3cf6c6871a37f2e6b @domesticcatsoftware domesticcatsoftware committed Jul 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 DCIntrospect/DCIntrospect.m
@@ -99,7 +99,7 @@ + (void)workaroundUITextInputTraitsPropertiesBug
for (unsigned int i = 0; i < count; i++)
{
Class class = classes[i];
- if (class_conformsToProtocol(class, @protocol(UITextInputTraits)))
+ if (class_getInstanceMethod(class, NSSelectorFromString(@"textInputTraits")))
{
IMP originalValueForKey = class_replaceMethod(class, @selector(valueForKey:), (IMP)UITextInputTraits_valueForKey, valueForKeyTypeEncoding);
if (!originalValueForKey)

0 comments on commit 8c060cf

Please sign in to comment.