TAILIEUCHUNG - Lập trình iphone chuyên nghiệp part 13

Dịch vụ tích hợp với iPhone Một trong những ý tưởng hấp dẫn nhất khi tạo một ứng dụng Web cho iPhone có tích hợp ứng dụng với các dịch vụ cốt lõi di động, chẳng hạn như quay số điện thoại hoặc gửi e-mail. Sau khi tất cả, một khi bạn phá vỡ những rào cản bên trong trình duyệt, ứng dụng trở nên nhiều hơn chỉ là một ứng dụng web và mở rộng chức năng của nó trên thiết bị di động | 7 Integrating with iPhone Services One of the most intriguing ideas when creating a Web application for iPhone is integrating the application with core mobile services such as dialing phone numbers or sending e-mails. After all once you break those inside the browser barriers the application becomes more than just a Web app and extends its functionality across the mobile device. However iPhone service integration is a mixed bag it s a good news bad news situation. On the upside perhaps the three most important mobile functions Phone Mail and Google Maps are accessible to the developer. On the downside there are no means of tapping into other core services such as SMS messaging Calendar Address Book Camera Clock iPod and Settings. In order to demonstrate the integration with iPhone services you ll be working with a sample application called iProspector which is a mocked up contact management system that emulates the iPhone Contact UI see Figure 7-1 . To create the UI you will be starting with Joe Hewitt s iUI framework which is discussed fully in Chapter 3. However because it does not provide support for the specific controls needed for the Contact UI this chapter will show you how to extend iUI as service integration is discussed. Because iPod touch does not provide support for Phone and Mail services any iPhone-specific integration should degrade gracefully when running on iPod touch. Chapter 7 Integrating with iPhone Services Contact header Services link Address book box Services button Figure 7-1 Contact UI Preparing the iProspector Application Shell Before integrating services and adding custom UI controls for them you first need to prepare the iProspector application shell. The following XHTML document contains a standard iUI setup for a hierarchical list-based side-scrolling interface DOCTYPE html PUBLIC - W3C DTD XHTML Strict EN http TR xhtml1 DTD html xmlns http 1999 xhtml head title iProspector title meta .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.