如何使用completionHandler调用DismissViewController?

时间:2015-10-09 16:48:18

标签: c# ios xamarin

主题说明了一切。我想将一些代码包装到此方法调用的completionHandler中。我该怎么做?

要包装在完成处理程序中的代码:vm.CancelDonationCommand.Execute(null);

this.DismissViewController(true,  ???);

1 个答案:

答案 0 :(得分:0)

这是我发现适用于这种情况的表格。

this.DismissViewController(true, () => {  put commands here  });