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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -