TAILIEUCHUNG - more iphone 3 development phần 9

Bạn nên biết rằng gỡ lỗi, hoặc thậm chí chạy từ Xcode mà không cần gỡ lỗi sẽ làm chậm chương trình đang chạy trên iPhone được kết nối, và Chương 8: Peer-to-Peer Trong Bluetooth Sử dụng GameKit Những "thẻ ngắn" liên quan đến đánh máy ít hơn, nó là sự thật, nhưng dù có hoặc không làm việc là | 440 CHAPTER 13 iPod Library Access comparisonType MPMediaPredicateComparisonContains MPMediaQuery query MPMediaQuery alloc initWithFilterPredicates NSSet setWithObject titlePredicate If the query actually returns items then we either append the returned items to collection or if collection is nil we create a new media item collection based on the results of the query and assign it to collection. We also set collectionModified to YES so that when the currently playing song ends or a new song is played it will update the music player with the modified queue. if query items count 0 if collection collection collectionByAppendingMediaItems query items else MPMediaItemCollection collectionWithItems query items player setQueueWithItemCollection player play collectionModified YES reloadData After that we just release our query reset the text field and retract the keyboard. query release @ titleSearch resignFirstResponder If the user presses the Use Media Picker button then this method is called. We start by creating an instance of MPMediaPickerController assign self as the delegate and specify that the user can select multiple items. We assign a string to display at the top of the media picker and then present the picker modally. - IBAction showMediaPicker MPMediaPickerController picker MPMediaPickerController alloc initWithMediaTypes MPMediaTypeMusic self picker setAllowsPickingMultipleItems YES NSLocalizedString @ Select items to play. @ Select items to play. self presentModalViewController picker animated YES picker release If the user clicks anywhere in the view that doesn t contain an active control we ll tell the text field to resign first responder status. If the text field is not the first responder then nothing happens. But if it is it will resign that status and the keyboard will retract. - IBAction backgroundClick titleSearch resignFirstResponder CHAPTER

TỪ KHÓA LIÊN QUAN
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.