ios - Get moment when view is dismissed -
i trying implement custom camera on view has both camera , section user add comment. far good, want moment when view dismissed , goes previous view (something imagepicker(didfinishpickingimage)) , pass taken picture , comment parameters. think should implement protocol have no idea start.
you can use method dismissing view controller:
- (void)dismissviewcontrolleranimated:(bool)flag completion:(void (^)(void))completion
if set flag yes, see animation of view getting dismissed. if set flag no, view dismissed right away, , can whatever want in completiton block.
Comments
Post a Comment