Created
August 30, 2012 11:46
-
-
Save codecaffeine/3526961 to your computer and use it in GitHub Desktop.
Print NSTextCheckingResult type quick and dirty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (result.resultType == NSTextCheckingTypeOrthography) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeSpelling) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeGrammar) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeDate) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeAddress) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeLink) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeQuote) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeDash) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeReplacement) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeCorrection) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeRegularExpression) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypePhoneNumber) { | |
NSLog(@"resultType: %@", ); | |
} else if (result.resultType == NSTextCheckingTypeTransitInformation) { | |
NSLog(@"resultType: %@", ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment