MBOcrCharKey
@interface MBOcrCharKey : NSObject
Class representing a char in specific font.
@example char ‘k’ in font Arial
MBOcrCharKey* key = [[MBOcrCharKey alloc] initWithCode:'k' font:MB_OCR_FONT_ARIAL];
@example char ‘ü’ in any font
MBOcrCharKey* key = [[MBOcrCharKey alloc] initWithCode:'ü' font:MB_OCR_FONT_ANY];
-
Unicode value of the char. For example, for char ‘k’, you can use either ‘k’ or 107.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) int code;
Swift
var code: Int32 { get set }
-
Factory method for easier instantiation
Declaration
Objective-C
+ (nonnull instancetype)keyWithCode:(int)code font:(MBOcrFont)font;
Parameters
code
Unicode value for the char
font
Font of the char
Return Value
initialized char key