We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在demo中按钮的返回动作是错误的:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在demo中按钮的返回动作是错误的:
{
if (self.navigationController == nil) {
[self dismissViewControllerAnimated:YES completion:nil];
} else {
if (self.parentViewController) {
[self.parentViewController dismissViewControllerAnimated:YES completion:nil];
} else {
[self.navigationController popViewControllerAnimated:YES];
}
}
}
这里的。 if (self.parentViewController) {
[self.parentViewController dismissViewControllerAnimated:YES completion:nil];
} else {
[self.navigationController popViewControllerAnimated:YES];
}这个判断存在错误,应当改为这样:
{
if (self.navigationController == nil) {
[self dismissViewControllerAnimated:YES completion:nil];
} else {
if (!self.parentViewController.parentViewController) {
[self.parentViewController dismissViewControllerAnimated:YES completion:nil];
} else {
[self.navigationController popViewControllerAnimated:YES];
}
}
}
The text was updated successfully, but these errors were encountered: