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

Media: images and sounds Cho đến nay, tập trung của chúng tôi về lập trình iPhone có chủ yếu là trên văn bản. Chắc chắn, chúng tôi đã hiển thị các UIImage thỉnh thoảng, chẳng hạn như núi vẽ trong chương cuối, nhưng chúng tôi đã chỉ được coi là phương tiện đơn giản nhất để làm như vậy. iPhone cung cấp một kinh nghiệm của nhiều tiềm năng phong phú hơn và hấp dẫn. Một camera, một microphone, một hình ảnh hoàn thành thư viện, và diễn giả chỉ là một số trong các tiện ích được xây dựng vào. | Media images and sounds This chapter covers Accessing and manipulating images Using the iPhone camera Playing sounds and video So far our focus on iPhone programming has mainly been on text. Sure we ve displayed the occasional Ullmage such as the mountain drawing in the last chapter but we ve only considered the simplest means for doing so. The iPhone offers an experience that s potentially much richer and more engaging. A camera a microphone a complete photos library and a speaker are just some of the utilities built into the iPhone. In this chapter we re going to look at these features as part of a general exploration of media. We ll provide deep coverage on images some information on the iPhone s media player and a basic look at playing sounds on the iPhone. More complex questions are beyond the scope of this chapter. We re saving the topic of image editing for the next chapter when we look at the iPhone s graphic libraries. For more complex sound work we ll offer pointers to Apple s extensive tutorials on the topic. 344 An introduction to images 345 An introduction to images We ve already touched upon using images a few times beginning in chapter 12 where we included an image in one of our earliest SDK examples. We ve always created a UIImageView in Interface Builder attached it to a filename and not worried about the details. We re now ready to consider the details. We ll look at some of the options you have available when you dive into Xcode rather than depending upon Interface Builder s higher-level abstractions. When you look more closely you ll discover that using images is a two-step process. First you load data into a Ullmage and then you make use of that Ullmage via some other means. There are two major ways to make use of Ullmages as shown in figure . We re going to explore the simpler methods of displaying images using UllmageView in this section and in section we ll examine the more complex means available for drawing images onto the .

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.