Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

iPhone/iPad开发讲座 第四讲 网络通讯和Xml处理

7,956 views

Published on

  • Login to see the comments

iPhone/iPad开发讲座 第四讲 网络通讯和Xml处理

  1. 1. iPhone/iPad XML Blog: http://tiny4.org/blog Twitter: @Tinyfool Mail/Gtalk: tinyfool@gmail.com
  2. 2. • NSData • Foundation • NSURL / NSURLRequest / NSURLConnection • NSNetService/NSNetServiceBrowser • Core Foundation • CFNetwork • CFNetServices • BSD Sockets
  3. 3. NSData • NSData* data = [[NSData alloc] initWithContentsOfURL:url]; • NSData* data = [NSData dataWithContentsOfURL:url];
  4. 4. Foundation • •
  5. 5. GET
  6. 6. POST
  7. 7. NSURLConnectionDelegate
  8. 8. Xml • SAX/DOM
  9. 9. XML NSXMLParser
  10. 10. XML NSXMLParserDelegateEventAdditions
  11. 11. DEMO+
  12. 12. • URL Loading System Programming Guide • Introduction to Event-Driven XML Programming Guide for Cocoa • [cocoa with love]Streaming and playing an MP3 stream

×