问题
Your images have probably been run through Apple's "pngcrush" program and therefore are not valid PNG files any more. I'm told that Apple's "pngcrush" has a way of reverting the damage and recreating a valid PNG from the crushed file, perhaps with some loss of data. If you can look at the beginning of the file and the bytes "CgBI" appear starting at byte 12 instead of "IHDR", that will confirm that the file has indeed been apple-pngcrushed.
回答1:
Ah!
@vivek, instead of this line:
[self.navigationController pushViewController:paymentViewController.visibleViewController animated:NO];
try this one (as per our sample code):
[self presentViewController:paymentViewController animated:YES completion:nil];
And also, instead of this one:
[self.navigationController popToRootViewControllerAnimated:YES ];
use this:
[self dismissViewControllerAnimated:YES completion:nil];
来源:https://stackoverflow.com/questions/20113755/application-is-crashing-while-poping-view-controller