Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocorrect-bubble reversed #26

Closed
senfi opened this issue May 10, 2017 · 3 comments
Closed

Autocorrect-bubble reversed #26

senfi opened this issue May 10, 2017 · 3 comments

Comments

@senfi
Copy link

senfi commented May 10, 2017

I tried something similar a while ago when implementing a messenger-functionality in our app. We came up with the same idea of reverting the tableview and then reverting the cells. So, the cell at the bottom contained a UITextField to enter the text to the other user. A problem we stumbled upon was the autocorrect-bubble:
screen shot 2017-05-10 at 08 02 12
In this example i just added a textfield to the cell to see what happens… if you type in something and autocorrect comes up with some better stuff, the bubble is reversed. We tried to walk through the view-hierarchy to rotate the bubble, but no solution was satisfying... do you have any idea how to take care of this?

@marty-suzuki
Copy link
Owner

Hi!
I guess that it might be solved this issue to turn off autocorrection with autocorrectionType.

@senfi
Copy link
Author

senfi commented May 10, 2017

This is "avoided", but not "solved" ;)

@marty-suzuki
Copy link
Owner

This is "avoided", but not "solved" ;)

It's exactly as you said.

I think UITableViewCell that contains UITextField is not a good UI structure in the first place.
Because UITableViewCell is reusable, it might be changed that's responder.
If you want that, put tapable UILabel to every cell.
When receiving UILabel tap event, calculating UILabel's position from tableView's superview.
Finally, put UITextField to that position.
A UITextFiled appears to be above that UITableViewCell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants