TAILIEUCHUNG - iPhone Cool Projects phần 9

kiểm soát phát lại âm thanh và báo cáo tình trạng phát lại. AudioPlayer điều phối việc chuyển giao các dữ liệu thô âm thanh từ AudioFileRequest thành các gói AudioFileStream, sau đó vào AudioQueue bộ đệm, và cuối cùng là vào các phần cứng âm thanh. Làm thế nào quá trình này hoạt động sẽ trở nên rõ ràng khi chúng ta nhìn vào mã | 164 CHAPTER 7 Going the Routesy Way with Core Location XML and SQLite 7-5. Selecting frameworks and libraries to link to the project Let s take a moment to become familiar with the libraries and frameworks that we just linked to the project This framework provides us with access to the iPhone s location API which your application uses to help the user find the nearest BART station. This contains APIs that allow us to determine the configuration of the user s device. In the case of Routesy we need to make sure the network is available before attempting to retrieve prediction data. This dynamic C library provides an API for querying the static SQL database included with our project. CHAPTER 7 Going the Routesy Way with Core Location XML andSQLite 165 I This dynamic library gives the application access to fast parsing of XML documents and support for XPath querying which will help us quickly find the prediction data the user requests. 6. The libxml2 library also requires that you include a reference to the libxml header files which are located on your system in the path usr include libxml2. To add the headers select the Build tab in the Target Info window that we ve already opened and add the path to the Header Search Paths field as shown in Figure 7-6. 7-6. Adding the libxml2 header search paths to the build settings Invoke the dialog shown in Figure 7-6 by double-clicking the Header Search Paths field. Make sure that you check the Recursive box so that your application can find all of the libxml2 headers that you ll need to build your application. Now that all of your project dependencies have been set up we re ready to get started coding. First we need to build the model for your project the objects that will represent pieces of data. For Routesy there are two types of objects a station and a prediction. You ll start by creating an object for each. 166 CHAPTER 7 Going the Routesy .

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.