views:

26

answers:

1

How can I determine when an action sheet has closed or has been dismissed ?

I've followed this topic http://stackoverflow.com/questions/349858/fitting-a-uidatepicker-into-a-uiactionsheet and added a picker view to an action sheet. However the didSelectRow event is called while action sheet is still open.

I want to update some data in my table view by changing some sql and re-querying my database, but having it refresh each click is slow, I want to refresh when the action sheet it gone ?

A: 

Store selected date value in some temporary variable. Then update your table view on action dismissed action (e.g. in actionSheet:didDismissWithButtonIndex: delegate method)

Vladimir