[英]How to dismiss a view controller after getting response from two separate web services
In my current project I came across a situation where I need to call two separate web services and dismiss present view controller once I get response from both the services.在我当前的项目中,我遇到了一种情况,即我需要调用两个单独的 Web 服务,并在从这两个服务获得响应后关闭当前的视图控制器。 Thanks in advance.
提前致谢。
@Karthik Reddy:您可以使用“If”条件语句来确认何时收到响应,“if”则使用以下代码关闭视图控制器...
dismissViewControllerAnimated(true, completion: nil)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.