示例:
if(x=y) {
present(“XYViewController”,animated: true, completion: nil)
x +=1
y = 2
}
else { }
当视图控制器关闭时,如何使操作x + = 1和y = 2运行?
感谢您的帮助,抱歉我的英文不好
答案 0 :(得分:1)
我认为您正在寻找View controller dismiss method
dismiss(animated: true, completion: {
// implement your code here x+=1 and y=2
})