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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -