阅读背景:

如何在swift iOS中使用nsurlsession来创建REST API的全局功能?

来源:互联网 

How can I make a function to call RESTful api through NSURLSESSION that can be used on every controller in swift iOS i.e. singleton object for everywhere in app This is the Code I came up with. But as soon as i call the method it crashes cause till return statement the jsonresponse is empty.How can I make a function to call RESTful api t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: