TAILIEUCHUNG - more iphone 3 development phần 3

Ứng dụng của chúng tôi sẽ dựa trên các mẫu ứng dụng dựa trên Window. Chúng tôi sẽ sử dụng trình soạn thảo mô hình dữ liệu để thiết kế thực thể siêu anh hùng của chúng tôi. Và sau đó chúng ta sẽ tạo một lớp điều khiển mới, có nguồn gốc từ UIViewController, mà sẽ cho phép chúng ta thêm, hiển thị, và xóa các siêu anh hùng. | 98 CHAPTER 4 The Devil in the Detail View - void viewDidLoad sectionNames NSArray alloc initWithObjects NSNull null NSLocalizedString @ General @ General nil rowLabels NSArray alloc initWithObjects Section 1 NSArray arrayWithObjects NSLocalizedString @ Name @ Name nil Section 2 NSArray arrayWithObjects NSLocalizedString @ Identity @ Identity NSLocalizedString @ Birthdate @ Birthdate NSLocalizedString @ Sex @ Sex nil Sentinel nil rowKeys NSArray alloc initWithObjects Section 1 NSArray arrayWithObjects @ name nil Section 2 NSArray arrayWithObjects @ secretIdentity @ birthdate @ sex nil Sentinel nil TODO Populate the rowControllers array super viewDidLoad - void dealloc hero release sectionNames release rowLabels release rowKeys release rowControllers release super dealloc pragma mark - pragma mark Table View Methods - NSInteger numberOfSectionsInTableView UITableView theTableView return sectionNames count - NSString tableView UITableView theTableView titleForHeaderInSection NSInteger section id theTitle sectionNames objectAtIndex section if theTitle isKindOfClass NSNull class return nil return theTitle CHAPTER 4 The Devil in the Detail View 99 - NSInteger tableView UITableView theTableView numberOfRowsInSection NSInteger section return rowLabels countOfNestedArray section - UITableViewCell tableView UITableView theTableView cellForRowAtIndexPath NSIndexPath indexPath static NSString CellIdentifier @ Hero Edit Cell Identifier UITableViewCell cell theTableView dequeueReusableCellWithIdentifier CellIdentifier if cell nil cell UITableViewCell alloc initWithStyle UITableViewCellStyleValue2 reuseIdentifier CellIdentifier autorelease NSString rowKey rowKeys nestedObjectAtIndexPath indexPath NSString rowLabel rowLabels nestedObjectAtIndexPath indexPath id HeroValueDisplay NSObject rowValue hero valueForKey rowKey rowValue heroValueDisplay rowLabel UITableViewCellAccessoryDisclosureIndicator return cell - void .

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.