Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
iPhone SDK Programming A Beginner’s Guide phần 8
Đang chuẩn bị liên kết để tải về tài liệu:
iPhone SDK Programming A Beginner’s Guide phần 8
Bích Hợp
38
48
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Đảm bảo cấu hình mặc định nhà nước được lựa chọn. 12. Thay đổi nền butbackgray.png và thay đổi hình ảnh để power.png. 13. Nổi bật với cấu hình nhà nước và thay đổi nền để butbackbluegray.png Đối với nút thứ ba, đảm bảo cấu hình mặc định nhà nước được lựa chọn và thêm các văn bản | Chapter 13 Controls Part Two Using Pickers and Using the Camera 321 property nonatomic retain IBOutlet UIPickerView myPicker property nonatomic retain IBOutlet MyPickerDelegate myPickerDelegate - IBAction changeColor id sender end Listing 13-10 APickerViewController.m import APickerViewController.h implementation APickerViewController synthesize myPicker synthesize myPickerDelegate - IBAction changeColor id sender NSLog the color is NSString myPickerDelegate.myData objectAtIndex myPicker selectedRowInComponent 0 - void dealloc myPickerDelegate release myPicker release super dealloc end Listing 13-11 Debug console output from running APicker application Session started at 2009-02-06 22 57 09 -0500. 2009-02-06 22 57 13.007 APicker 429 20b picked row 1 component 0 2009-02-06 22 57 13.008 APicker 429 20b the value Yellow 2009-02-06 22 57 14.687 APicker 429 20b picked row 3 component 0 2009-02-06 22 57 14.687 APicker 429 20b the value Blue 2009-02-06 22 57 16.540 APicker 429 20b picked row 8 component 0 2009-02-06 22 57 16.541 APicker 429 20b the value Tan 2009-02-06 22 57 17.499 APicker 429 20b the color is Tan 2009-02-06 22 57 21.215 APicker 429 20b picked row 10 component 0 2009-02-06 22 57 21.215 APicker 429 20b the value Coral 2009-02-06 22 57 22.547 APicker 429 20b the color is Coral A UlPickerView must have helper classes adopting the UIPickerViewDelegate and UIPickerViewDataSource protocols. In this example you had one class MyPickerDelegate adopt both protocols. The delegate uses a simple NSArray to hold NSString objects. Because the data is simple strings the delegate implements the titleForRow method. When a user selects a row the didSelectRow method logs the row component and value to the debugger console. 322 iPhone SDK Programming A Beginner s Guide Try This Using a UlPickerView with Two Components 1. Open APicker application in Xcode. 2. Modify MyPickerDelegate s numberOfComponentsInPickerView to return the number 2 Listing 13-13 . 3. Click Build And Go.
TÀI LIỆU LIÊN QUAN
Beginning iPhone 3 Development Exploring the iPhone SDK
Beginning iPhone 4 Development Exploring the iOS SDK
Begining iPad Development for iPhone Developers
The iOS 6 Programming Cookbook
iPhone SDK 3 Programming Advanced Mobile Development for Apple iPhone and iPod touc phần 1
iPhone SDK 3 Programming Advanced Mobile Development for Apple iPhone and iPod touc phần 2
iPhone SDK 3 Programming Advanced Mobile Development for Apple iPhone and iPod touc phần 3
iPhone SDK 3 Programming Advanced Mobile Development for Apple iPhone and iPod touc phần 4
iPhone SDK 3 Programming Advanced Mobile Development for Apple iPhone and iPod touc phần 5
iPhone SDK 3 Programming Advanced Mobile Development for Apple iPhone and iPod touc phần 6
crossorigin="anonymous">
Đã 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.