Chapter 14. The web: web views and internet protocols
Internet connectivity is an essential feature of modern life, and the iPhone and iPad are so useful because iOS allows for easy internet access. In this chapter, we’ll cover the major ways to access the internet from the SDK. You can use a variety of approaches, and we’ll outline their hierarchy in the first section. Later in the chapter, we’ll look at low-level networking, working with URLs, using the UIWebView, parsing XML, using POST, and accessing the social web using various protocols.
Internet programming involves a hierarchy of protocols. At the lowest level are the sockets you use to connect one computer to another. Above them are a variety of more sophisticated technologies, such as FTP, Bonjour, and HTTP. HTTP is a critical protocol, represented on the iPhone and iPad by both low-level access and the high-level UIWebView. Recently, an increasing number of protocols have been built on top of HTTP, forming what we call the social web.
This hierarchy of internet protocols is shown in figure 14.1, along with iOS classes of note.