Skip to content

resignFirstResponder is called when table cell is at bottom of UITableView #2

@mawilmsen

Description

@mawilmsen

Hey,

first: I love your PickerTableViewCell! Thanks for publishing this nice piece of code.

Unfortunately, I have two issues and am not being able to solve them (I will opentwo tickets here). Would be great if you could help. I am talking about iPhone. On iPad I didn't find any issues.

I am using the SimplePickerTableViewCell. If a tableview is large (has a few cells so that at least one cell is near to the bottom of the screen), then resignFirstResponder is called for this cell immediately after selecting it. So the cell looses focus immediately after selecting it.

However - the Picker and AccessoryView are visible, though. But due to the early call of resignFirstResponder, the cell isn't higlighted anymore, and - much more important - the value is not updated when the "done" button is pressed. Only if I select the same cell again, and it becomes first responder for at least a short time frame, the value is updated.

It only happens if a cell is close to the bottom of the table, so I guess it has something to do with the scrolling of the tableview if the picker appears.

I tried to debug a little bit to find out who is calling resignFirstResponder so early, but couldn't come to a solution. Doe you have any ideas/hints for me?

Kind regards, maw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions