iPhone,纠察板上的对象如何检测操作表何时关闭/解除?
我如何确定操作表何时已关闭或已被驳回?
我关注了这个主题 Fitting a UIDatePicker into a UIActionSheet 并添加了一个选择器查看操作表。但是,当操作表仍处于打开状态时,会调用 didSelectRow 事件。
我想通过更改一些 sql 并重新查询数据库来更新表视图中的一些数据,但是每次单击刷新都很慢,我想在操作表消失时刷新?
How can I determine when an action sheet has closed or has been dismissed ?
I've followed this topic 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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将选定的日期值存储在某个临时变量中。然后更新您的表视图上的操作取消操作(例如在actionSheet:didDismissWithButtonIndex:委托方法中)
Store selected date value in some temporary variable. Then update your table view on action dismissed action (e.g. in actionSheet:didDismissWithButtonIndex: delegate method)