{"issue":{"milestone":null,"user":{"id":1268523,"login":"mawilmsen","url":"https://api.github.com/users/mawilmsen","avatar_url":"https://secure.gravatar.com/avatar/8da50538f35f61e93cbb5368d6e446a3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8da50538f35f61e93cbb5368d6e446a3"},"created_at":"2011-12-16T19:14:25Z","title":"resignFirstResponder is called when table cell is at bottom of UITableView","labels":[],"state":"open","updated_at":"2011-12-17T14:08:36Z","id":2583257,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/wannabegeek/PickerTableViewCell/issues/2","body":"Hey,\r\n\r\nfirst: I love your PickerTableViewCell! Thanks for publishing this nice piece of code.\r\n\r\nUnfortunately, 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.\r\n\r\nI 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.\r\n\r\nHowever - 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.\r\n\r\nIt 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.\r\n\r\nI 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?\r\n\r\nKind regards, maw\r\n\r\n\r\n\r\n","number":2,"url":"https://api.github.com/repos/wannabegeek/PickerTableViewCell/issues/2","comments":3,"assignee":null},"comment":{"user":{"id":1268523,"login":"mawilmsen","url":"https://api.github.com/users/mawilmsen","avatar_url":"https://secure.gravatar.com/avatar/8da50538f35f61e93cbb5368d6e446a3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8da50538f35f61e93cbb5368d6e446a3"},"created_at":"2011-12-17T14:08:36Z","updated_at":"2011-12-17T14:08:36Z","id":3189509,"body":"Hi again,\r\n\r\n> Btw: sometimes the table cell gets updated with new selections while the picker is still open, sometimes not (but always if the picker is closed). Have you registered that before?\r\n\r\nI found out why. If the cell textLabel.text is nil, then the cell will not update immediately. Solved it now by setting a placeholder text \"- don't care -\" if no value is selected.\r\n\r\nRegarding the \"only in the simulator issue\": After several tests, I can confirm this only happens in the simulator. I really hope, it doesn't behave different on different platforms/iOS versions. I am using the pretty old 3G with iOS 4.2.1 for testing. Which one are you using? Can you confirm it behaves properly on 4G/4GS with iOS 5 also?\r\n\r\nRegards / maw","url":"https://api.github.com/repos/wannabegeek/PickerTableViewCell/issues/comments/3189509"},"action":"created"}