Fix iOS 8 bug causing site search field to be auto-capitalized.
This commit is contained in:
parent
3e217d5a69
commit
9b24efa65c
@ -63,10 +63,14 @@ typedef NS_OPTIONS( NSUInteger, MPPasswordsTips ) {
|
|||||||
|
|
||||||
self.view.backgroundColor = [UIColor clearColor];
|
self.view.backgroundColor = [UIColor clearColor];
|
||||||
[self.passwordCollectionView automaticallyAdjustInsetsForKeyboard];
|
[self.passwordCollectionView automaticallyAdjustInsetsForKeyboard];
|
||||||
[self.passwordsSearchBar enumerateViews:^(UIView *subview, BOOL *stop, BOOL *recurse) {
|
self.passwordsSearchBar.autocapitalizationType = UITextAutocapitalizationTypeNone;
|
||||||
if ([subview isKindOfClass:[UITextField class]])
|
if ([self.passwordsSearchBar respondsToSelector:@selector(keyboardAppearance)])
|
||||||
((UITextField *)subview).keyboardAppearance = UIKeyboardAppearanceDark;
|
self.passwordsSearchBar.keyboardAppearance = UIKeyboardAppearanceDark;
|
||||||
} recurse:YES];
|
else
|
||||||
|
[self.passwordsSearchBar enumerateViews:^(UIView *subview, BOOL *stop, BOOL *recurse) {
|
||||||
|
if ([subview isKindOfClass:[UITextField class]])
|
||||||
|
((UITextField *)subview).keyboardAppearance = UIKeyboardAppearanceDark;
|
||||||
|
} recurse:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewWillAppear:(BOOL)animated {
|
- (void)viewWillAppear:(BOOL)animated {
|
||||||
|
Loading…
Reference in New Issue
Block a user