0xced / XCDFormInputAccessoryView

Input accessory view with previous, next and done buttons
236 stars 49 forks source link

"Previous" button not working when starting in 3rd field in demo #1

Open tempelmann opened 11 years ago

tempelmann commented 11 years ago

Cédric, when I run the demo in the iPhone simulator (iOS 5), and then tap into the last field, then the Previous button does not scroll the table back, and the cursor appears to remain in the 3rd field. However, as soon as I scroll to the top, the cursor jumps to the prev field.

While this may be outside of the scope of your class, the demo should at least show how to get this right.

0xced commented 11 years ago

That’s a really weird behavior. I’ll have a look.

egold commented 11 years ago

+1 happens for me too. In my case, my app has a table view of these rows / form inputs:

When I focus the 4th row (the UITextView row) the Previous button doesn't work (doesn't focus the previous field in the chain, namely the 1st row's UITextField). However, if I scroll the first row back into visibile, then click Previous, it focuses the first row's UITextField.

sjgroomi commented 11 years ago

I have been trying to resolve this for quite some time now

Do we have any updates?

My specific problem is that the previous button does not function on a textview that has been scrolled out of view (Scrollview/Tableview). When I iterate through the view controllers and find search for a first responder it appears that the first responder is set to nil.