开发者

iPhone Basic Drawing + Socket communication

开发者 https://www.devze.com 2023-01-07 05:05 出处:网络
I took upon myself to create an App that allows开发者_JAVA技巧 the user to draw and as he draws the strokes would be sent to a server via a Socket connection.

I took upon myself to create an App that allows开发者_JAVA技巧 the user to draw and as he draws the strokes would be sent to a server via a Socket connection. The app also needs to receive strokes and display them as well.

This would be just a demo app for our server, not a serious iPhone app.

Any ideas, suggestions would be AWESOME.

I started with this great tutorial: http://icodeblog.com/2008/07/30/iphone-programming-tutorial-connecting-code-to-an-interface-builder-view/ but it took me two days to just get the Hello World up and running :(


One simple solution would be to render the content in a UIWebView, and let it download the strokes and display them in e.g a HTML Canvas. Interaction could then be done in a relatively platform-independent manner using e.g. AJAX. The iPhone version of Safari is a very capable browser. If you are familiar with these technologies that would probably be the easiest solution.

If you want to roll your own component, maybe using a more high-level protocol like XML-RPC or plain HTTP would be easier than raw sockets?

0

精彩评论

暂无评论...
验证码 换一张
取 消