开发者

table to updated after selection with uipicker

An UIPicker shows up when I select a row in a table, so I can choose some things I w开发者_JS百科ant to be displayed on the same row.

How can I update the table once I finished with the uipicker? I used reloadData right after the call to the picker, but the code is executed before I do "Done" on the picker.

Some idea?

Thank u


USe the UIPicker delegate method pickerView:didSelectRow:inComponent:, and call reloadData from your delegate.

The object with your "done" action should be the delegate of the UIPicker, and implement the delegate method above. In that delegate method call reloadData. It will be called when the picker is done.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜