update tableview if data is changed online

我与影子孤独终老i 提交于 2019-12-01 10:42:12

You could implement it using a TCP-based client-server approach, where the iPad is the client.

  1. The iPad client connects to the server using authentication so you know which waiter is using the iPad.
  2. The TCP uses duplex communication over the TCP socket so either side can send a message to the other.
  3. If the server has something to give to the iPad/client/waiter then it simply sends it to them.
  4. If the client wants to send a message to the server, like "I'm taking a break", or whatever, then it simply sends it to the server.
  5. The range of information you can share between the client and server is actually unlimited.
  6. There is no 6.

This requires the server to be written as well, however, so this solution is more than just iOS development. However a webservice would need similar development anyway.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!