MLPAutoCompleteTextField icon indicating copy to clipboard operation
MLPAutoCompleteTextField copied to clipboard

Can't click sugestion when using the control as a navigation top bar item

Open ExMatrixEndless opened this issue 10 years ago • 3 comments

My issue is this, i can't touch the suggestion table view cells outside the frame of the navigation bar view, i try to alter the code in the library but the results are the same, i see the reports about the control fixed in some other issues like using the control in a tableview, the problem here is similar because the control is inside a navigation bar item using storyboard, i think is because the view of the tableview is taking all the touch events apart of the touch events inside the navigation top bar frames.

What can i do to fix this issue, i can bring more information of the proyect if you want. Thanks for this amazing library. Sorry for my bad english.

trytofixissue

ExMatrixEndless avatar Jul 01 '14 17:07 ExMatrixEndless

The reason this happens is because the touchable area of the navigation bar is smaller than the full viewable area, so touches that land outside of the touchable area will be ignored and passed on to the views below it.

When the autocomplete table appears, touches only register for the part of it that is within the navigation bar's bounds.

I've been working on an idea for fixing this issue once and for all, but it will still be a while before that gets a proper release.

For a case like this, I would consider using the keyboard style autocomplete menu. If not, then try expanding the touchable area of your navigation bar temporarily while the menu is shown.

EddyBorja avatar Jul 01 '14 18:07 EddyBorja

About the keyboard style the only issue i have is when you touch the textfield already filled with a sugestion for second time and the keyboard reappear with that suggestion, because there is always area for three sugestions cells, the frame size is too big when there is only one result, i want to alter the frame to show only the space for 1+1/2 size of the cell size to appear.

I will looking to acomplish that sugestion you give to me, but i really don't know much about touchable area frames, thanks for the answer and i hope you idea works for that future solution.

Thanks for your help.

ExMatrixEndless avatar Jul 01 '14 19:07 ExMatrixEndless

It's been a while @EddyBorja , can we get an update please? Would love one. Great work on your package. I've tried your other commit with the parent view property, and setting it with self.view (tablview's superview) but that still causes the touch clipping (bottom half not scrollable).

pavankataria avatar Nov 21 '16 01:11 pavankataria