TAILIEUCHUNG - Lập trình ứng dụng cho iPhone part 2

Web development or the SDK? có hai cách bạn có thể phát triển cho iPhone. Một cách tiếp cận là để viết các trang web cho điện thoại di động Safari, bằng cách sử dụng HTML, CSS, JavaScript, và ngôn ngữ năng động yêu thích của bạn. khác là để viết các ứng dụng bản địa để chạy trực tiếp trên iPhone, sử dụng Objective-C và SDK của iPhone. Chúng tôi mạnh mẽ tin tưởng rằng mỗi phương pháp lập trình có vị trí riêng của mình, và rằng bạn nên luôn luôn đảm bảo bạn đang sử dụng một trong. | Web development or the SDK This chapter covers The two types of iPhone development Ways to program for the iPhone Integrated project development There are two ways you can develop for the iPhone. One approach is to write web pages for mobile Safari using HTML CSS JavaScript and your favorite dynamic language. The other is to write native applications to run directly on the iPhone using Objective-C and the iPhone SDK. We strongly believe that each programming method has its own place and that you should always ensure you re using the correct one before you get started with any iPhone project. Comparing the two programming styles One of the things that might surprise programmers coming to the iPhone for the first time is the fact that web development and SDK programming can produce similar user-level experiences and support much of the same functionality. We ve 16 Comparing the two programming styles 17 highlighted this in figure which kicks off our discussion of the fact that web development and SDK programming are both reasonable alternatives when creating applications for the iPhone. Figure depicts what iPhone developers call a utility a two-page iPhone application that contains the actual application on the front page and setup information on the back page. Within the illustration we ve included a snippet of the code that allows the utility to flip between the pages when the info button is pushed. It s done in Figure Though not identical web programming left and SDK development right can produce similar output with similar underlying programming models. 18 Chapter 2 Web development or the SDK JavaScript in the web example and in Objective-C in the SDK example. Each one produces an attractive rotating animation when the active screen is changed. We ll explain more about how the code for each programming style works in the chapters ahead but we wanted to give you a preview now. There s a further similarity between the two programs each one features

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.