美文网首页
iOS 返回事件 《方便记忆》

iOS 返回事件 《方便记忆》

作者: 奔跑吧小蚂蚁 | 来源:发表于2020-04-11 10:33 被阅读0次
    if (self.navigationController) {
        if (self.navigationController.viewControllers.count > 1) {
            [self.navigationController popViewControllerAnimated:YES];
        }else{
            [self.navigationController dismissViewControllerAnimated:YES completion:nil];
        }
    }else{
        [self dismissViewControllerAnimated:YES completion:nil];
    }

相关文章

网友评论

      本文标题:iOS 返回事件 《方便记忆》

      本文链接:https://www.haomeiwen.com/subject/ecnemhtx.html