简体   繁体   English

如何从您的 iOS 应用程序连接到后端服务器? 如何读取、修改和获取数据到后端服务器?

[英]How to connect from your iOS app to a backend server? how to read, modify and fetch data to backend server?

I am new in developing iOS applications.我是开发 iOS 应用程序的新手。 I like to learn communication between my app and a specific back-end server(which is written in ruby).我喜欢学习我的应用程序和特定后端服务器(用 ruby​​ 编写)之间的通信。 I would like to learn how to read, fetch and modify data on the back-end server?我想学习如何在后端服务器上读取、获取和修改数据? I do not have any idea where I should start?我不知道应该从哪里开始? I am very welcome if you could refer me to any online resource/tutorial for this topic.如果您可以向我推荐有关此主题的任何在线资源/教程,我非常欢迎。

First, you have to create an API in ruby.首先,您必须在 ruby​​ 中创建一个 API。 Here is a tutorial on how to do it: https://www.codeschool.com/courses/surviving-apis-with-rails .这是有关如何执行此操作的教程: https : //www.codeschool.com/courses/surviving-apis-with-rails

After that, when you are sure that your API is working correctly, you can write a service for HTTP communication.之后,当您确定您的 API 正常工作时,您就可以编写用于 HTTP 通信的服务。 You can do it by yourself, but in my opinion, a much better option would be using the third party for that.您可以自己完成,但在我看来,更好的选择是使用第三方。 I prefer using AFNetworking: https://github.com/AFNetworking/AFNetworking .我更喜欢使用 AFNetworking: https : //github.com/AFNetworking/AFNetworking

You can also use Heroku .您也可以使用Heroku First you can create your API and make some tests then implement to your server.首先,您可以创建 API 并进行一些测试,然后将其实施到您的服务器。

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

相关问题 让服务器后端告诉iOS应用更新数据 - Have server backend tell iOS app to update data Android / IOS应用程序与网关(后端服务器)之间的数据传输框架 - Framework for data transmission between Android/ IOS app and gateway (backend server) 来自iOS应用和后端服务器的社交身份验证 - Social authentication from both iOS app and backend server 用户从iPhone卸载应用程序时,iOS将如何通知APNS服务器/后端服务器? - How iOS will inform the APNS server/ backend server when user uninstall application from iPhone? 如何从后端服务器提取IOS应用程序中的初始化配置和更新的代码? - How to pull init configuration and updated code in IOS application from backend server? 有没有办法从我的服务器没有后端费用从iOS应用程序收取卡。(条纹 - iOS) - Is there any way to charge card from iOS App without backend charge from our server.(Stripe - iOS) 在没有互联网连接的情况下通过wifi将应用程序连接到服务器上的后端 - Connect app to backend on server via wifi with no internet connection iOS应用程序如何从服务器获取数据 - IOS app How to get data from server 如何通过网络服务器在您的应用程序上显示最新数据 - How to show latest data on your app from a web server iOS上的应用内购买可以在后端服务器上完成吗? - can In-App-Purchase on iOS be done on backend server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM