Application is crashing while poping view controller

ぐ巨炮叔叔 提交于 2019-12-23 04:12:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!