开发者

UIDatePicker and previous view

开发者 https://www.devze.com 2022-12-10 00:36 出处:网络
As with the settings page, I have a UI that displays a list of parameters, one of which is a date. When the user presses the row containing the date, a controller displaying a UIDatePicker is pushed.

As with the settings page, I have a UI that displays a list of parameters, one of which is a date. When the user presses the row containing the date, a controller displaying a UIDatePicker is pushed.

What is the best way to update the table row with the selected value of the UIDatePicker when the user presses the back button to go back to t开发者_JAVA技巧he list of parameters.


How about: have the picker's controller tell the table view's controller about the update (assuming that they're not already the same object), and have that controller call reloadRowsAtIndexPaths:withRowAnimation: on the table view itself.

Or is your question, how do you get the controllers to talk to each other?

0

精彩评论

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