简体   繁体   English

如何在iOS中创建服务?

[英]How to create service in iOS?

Does any one suggest to how make a background service in iOS(iPhone/iPad) app? 是否有人建议如何在iOS(iPhone / iPad)应用程序中进行后台服务?

Is it possible the service running at background continuously? 服务是否可能在后台连续运行? I have to make service with HTTP communication(REST service).Which can help to launch other application. 我必须使用HTTP通信(REST服务)进行服务。这可以帮助启动其他应用程序。

Is it possible? 可能吗?

Thanks 谢谢

For this you have to establish Asynchronous Connection which works on behind the application while Synchronous connection works on Main thread which is not your requirements. 为此,您必须建立在应用程序后面工作的异步连接,而在主线程上工作的同步连接则不是您的要求。

You can Download ASIHTTP classes from Github to implement while 您可以从Github下载ASIHTTP类以实现

You can found good description about these files from Here and Implementation example is Here 你可以找到有关这些文件的很好的说明从这里和实现的例子在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM