I’m having trouble with presentViewController method and its last parameter.
[self presentViewController:navigationController animated:YES completion:nil];
I’m new in objective-c syntax and can’t find out what object should I pass to ‘completion’ parameter. (also didn’t find any examples that use it)
I want to have callback method when my presented View Controller dismisses.
Thanks,
Milos
That’s a place for a
block.For operations on dismissal you could place your code in the
viewWillDisappear:orviewDidDisappear:method.