Very beginner obj-c question.
I have grouped TableView with two sections http://uaimage.com/image/c6c9ca23 . In first section I have custom cells with UITextField‘s in them. I need to implement Input Accessory View For keyboard with additional buttons “Next”, “Prev” (to switch between text fields in first section) and “Done”(to dismiss the keyboard) http://uaimage.com/image/62f08045 .
Question is: what do I need to implement possibility to switch between text fields in cells in first section of TableView by tapping input Accessory buttons?
Do I need to tag cells or text fields and if so, how can I retrieve their value when user will tap on Input Accessory buttons? Or it is a better approach to do this?
Thanks, Alex
I assume say u have 3 UITextField ie txt ,txt1, txt 2 with
tags0 1 and 2; Now addUITableViewCell *cellin .h file.EDIT :
Now to get references of all textField from current tableView cell add this delegate method:
Now in Input Accessory prev button action do this:
Now in Input Accessory next button action do this: