PKAddPassesViewController animation does not work

I am struggling with PKAddPassesViewController.

If I do not implement the delegate method addPassesViewControllerDidFinish:, its dismissal is animated (looks like a cross-dissolution). However, as soon as I implement the method in my delegate, I cannot get the dispatcher to be fired with any animation. He simply disappears, no matter how I tried to dismiss it from the delegate method: dismissViewControllerAnimated:YES, dismissModalViewControllerAnimated:YES...

Any idea on this?

Thank.

+3
source share
1 answer

Resetting the controller in the delegate method solved my problem.

-(void)addPassesViewControllerDidFinish:(PKAddPassesViewController *)controller {
    [controller dismissViewControllerAnimated:YES completion:nil];
    [self updateData];
}`
0
source

All Articles