This file contains 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
+ (BOOL)stringContainsComposedCharacters:(NSString *)string | |
{ | |
__block BOOL contains = NO; | |
[string enumerateSubstringsInRange:NSMakeRange(0, string.length) | |
options:NSStringEnumerationByComposedCharacterSequences | |
usingBlock: | |
^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) | |
{ | |
if (substringRange.length > 1) | |
{ |
This file contains 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
@interface NSCodingSearchBar : UISearchBar | |
// Default by the system is YES. | |
// https://github.com/nst/iOS-Runtime-Headers/blob/master/Frameworks/UIKit.framework/UISearchBar.h | |
@property (nonatomic, assign, setter = setHasCentredPlaceholder:) BOOL hasCentredPlaceholder; | |
@end |