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
Example of creating a completion block:
[self presentViewController:navigationController
animated:YES
completion:^(){
//put your code here
}];
This block does not take parameters. other blocks may take parameters and you can define them like this example:
^(BOOL bFinished){
//put your code here
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With