From 4c711af9fb86163bf73b7e3085b72eb91d375365 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Tue, 2 Jun 2015 18:25:43 -0500 Subject: [PATCH] Adding support to different keyboard's appearances. --- VENTokenField/VENTokenField.h | 2 ++ VENTokenField/VENTokenField.m | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/VENTokenField/VENTokenField.h b/VENTokenField/VENTokenField.h index 73ea5dd..0c8f2b6 100644 --- a/VENTokenField/VENTokenField.h +++ b/VENTokenField/VENTokenField.h @@ -62,6 +62,8 @@ @property (assign, nonatomic) CGFloat minInputWidth; @property (assign, nonatomic) UIKeyboardType inputTextFieldKeyboardType; +@property (assign, nonatomic) UIKeyboardAppearance inputTextFieldKeyboardAppearance; + @property (assign, nonatomic) UITextAutocorrectionType autocorrectionType; @property (assign, nonatomic) UITextAutocapitalizationType autocapitalizationType; @property (assign, nonatomic) UIView *inputTextFieldAccessoryView; diff --git a/VENTokenField/VENTokenField.m b/VENTokenField/VENTokenField.m index 63c63a6..b0ab624 100644 --- a/VENTokenField/VENTokenField.m +++ b/VENTokenField/VENTokenField.m @@ -415,6 +415,11 @@ - (void)setAutocorrectionType:(UITextAutocorrectionType)autocorrectionType [self.invisibleTextField setAutocorrectionType:self.autocorrectionType]; } +- (void) setInputTextFieldKeyboardAppearance:(UIKeyboardAppearance)inputTextFieldKeyboardAppearance { + _inputTextFieldKeyboardAppearance = inputTextFieldKeyboardAppearance; + [self.inputTextField setKeyboardAppearance:self.inputTextFieldKeyboardAppearance]; +} + - (void)setInputTextFieldKeyboardType:(UIKeyboardType)inputTextFieldKeyboardType { _inputTextFieldKeyboardType = inputTextFieldKeyboardType;