Đang chuẩn bị liên kết để tải về tài liệu:
Phát triển ứng dụng cho iPhone và iPad - part 14

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Tham khảo tài liệu 'phát triển ứng dụng cho iphone và ipad - part 14', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Displaying Master Detail Data with the UISplitViewController 99 Changes to the RootViewController Now you need to move on to the RootViewController. Here you will add an NSMutableArray to hold the collection of surveys. You cannot simply use an NSArray because you will need to be able to add surveys to the collection on-the-fly. Remember NSArray is immutable meaning that once you have created it you cannot modify it. In the RootViewController header file add an instance variable called surveyDataArray of type NSMutableArray NSMutableArray surveyDataArray Add a property for your new surveyDataArray property nonatomic retain NSMutableArray surveyDataArray Switch over to the RootViewController implementation file and modify the synthesize statement to synthesize your new surveyDataArray property synthesize detailViewController surveyDataArray Modify the viewDidUnload and dealloc methods to clean up your new property O- void viewDidUnload Relinquish ownership of anything that can be recreated in viewDidLoad or on demand. download on Wnn.com For example self.myOutlet nil self.surveyDataArray nil - void dealloc detailViewController release surveyDataArray release super dealloc RootViewController.m Finally modify the viewDidLoad method to create and initialize the NSMutableArray 0- void viewDidLoad super viewDidLoad iownloadon self.clearsSelectionOnViewWillAppear NO self.contentSizeForViewInPopover CGSizeMake 320.0 600.0 NSMutableArray array NSMutableArray alloc init self.surveyDataArray array array release RootViewController.m 100 I CHAPTER 4 IPAD INTERFACE ELEMENTS Modify the TableView Methods The next step is to modify the Table View datasource methods to use the surveyData array as the UITableView s datasource. First you will need to update the tableView numberOfRowsinSection method to return the number of items in the array like this J Available for download on Wrox.com NSInteger tableView UITableView aTableView numberOfRowsInSection NSInteger section Return the .

TÀI LIỆU 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.