EddyBorja / MLPAutoCompleteTextField

UITextfield subclass with autocomplete menu. For iOS.
Other
1.21k stars 222 forks source link

The AutocompleteTable disappears when device is Bent (Flipped) #103

Closed harshvishu closed 8 years ago

harshvishu commented 8 years ago

When using autoCompleteTableAppearsAsKeyboardAccessory = true. The autoCompleteView disappears when device is rotated or bent (as in moved or rotated on x-axis or flipped half even way). The property autoCompleteTableViewHidden = false is still false. So changing the property has no effect.

aug-30-2016 15-57-25

Pod Version: 'MLPAutoCompleteTextField', '~> 1.5' Xcode Version: Version 7.3.1 (7D1014)

harshvishu commented 8 years ago

Solved 👍 Looks like I was using NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(ElavatorBankTableViewCell.rotated), name: UIDeviceOrientationDidChangeNotification, object: nil)

When using autoCompleteTableAppearsAsKeyboardAccessory = true I removed the suggested rotation workaround.