I’ve made an app that displays a menu of a restaurant (in a tableview). What I want to do is let users add items to an order and (text or email) it to the restaurant.
I am just not sure what approach to use. Should I create an array when they click a row in the table? and then send that array as sms? or is there another way to achieve this?
Any advice would be appreciated. Thanks.
I don’t know what the question is, but here is some points I would consider:
I would use web services using POST. In your case, you probably need two: one for getting menus and the other one for submitting orders.
I would use objects no matter whether it is JSON, XML or others of the information. In your app side, you can create a class, say order, contains two fields, Item Id and Item count. So when submitting your order, the web service would be very easy, you only need to pass a NSArray of your order objects.
I have an app similar to yours, I used SOAP based web services on our .Net server side. I guess for JSON it shouldn’t be that much different.
Hope this helps.