SearchTextField icon indicating copy to clipboard operation
SearchTextField copied to clipboard

Does this work with IQKeyboardManager

Open benjishore opened this issue 8 years ago • 4 comments

Is anyone aware if this Pod works with IQKeyboardManager as I am having issues getting the autocomplete to work.

benjishore avatar Nov 20 '17 10:11 benjishore

+1

tarun885 avatar Nov 27 '17 18:11 tarun885

Hey guys!, can you please help me understanding better the issues?. Probably some example code and/or screenshots?.

apasccon avatar Nov 27 '17 20:11 apasccon

Hi, my application makes use of the IQKeyboardManager pod. When trying to intergrate this pod also and attempt to get it working it causes errors.

benjishore avatar Dec 04 '17 14:12 benjishore

It seems, there is some conflict with shouldResignOnTouchOutside feature in IQKeyboardManager. I was able to resolve the issue with non-working itemSelectionHandler by disabling the mentioned feature in the controller where SearchTextField is used:

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        IQKeyboardManager.shared().shouldResignOnTouchOutside = false
    }
    
    override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        IQKeyboardManager.shared().shouldResignOnTouchOutside = true
    }

lkravchuk avatar Sep 03 '18 14:09 lkravchuk