Skip to Content
Beginning iOS 5 Application Development
book

Beginning iOS 5 Application Development

by Wei-Meng Lee
January 2012
Beginner content levelBeginner
655 pages
16h 35m
English
Wrox
Content preview from Beginning iOS 5 Application Development

SUMMARY

This chapter explored the various ways you can consume a Web service in your iOS applications: SOAP, HTTP GET, HTTP POST, and JSON. You also learned how to extract data from an XML document. Finally, you learned how to integrate Twitter into your application using the new API in iOS 5.

EXERCISES

  1. Name the four ways in which you can consume a Web service in your iOS applications.
  2. Name the three key events you need to handle when using the NSURLConnection class.
  3. Describe the steps with which the NSXMLParser class parses the content of an XML document.
  4. Name the class new in iOS 5 for composing Tweets.

    Answers to the exercises can be found in Appendix D.

image WHAT YOU LEARNED IN THIS CHAPTER

TOPIC KEY CONCEPTS
Ways to consume a Web service SOAP 1.1/1.2, HTTP GET, HTTP POST, and JSON
Formulating a URL request Use the NSMutableURLRequest class.
Establishing a URL connection Use the NSURLConnection class.
Class for storing byte buffers Use the NSMutableData class.
Events fired by the NSURLConnection class connection:didReceiveResponse:connection:didReceiveData:connection:didFailWithError:connectionDidFinishLoading:
Parsing XML content Use the NSXMLParser class.
Events fired by the NSXMLParser class *parser:didStartElement:namespaceURI:qualifiedName:attributes:*parser:foundCharacters:*parser:didEndElement:namespaceURI:qualifiedName:
Parsing JSON strings Use ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering iOS 12 Programming - Third Edition

Mastering iOS 12 Programming - Third Edition

Donny Wals
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781118144251Purchase book