CatNiP prefinal
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
|
Shows all the details for the chosen score in tableview. More...
#import <DetailPopoverController.h>
Public Member Functions | |
(void) | - dealloc [implementation] |
(void) | - didReceiveMemoryWarning [implementation] |
(id) | - initWithStyle:masterController:dictionary: |
Basic init for DETAILPopoverController, sets masterController = controller. | |
(NSInteger) | - numberOfSectionsInTableView: |
UITableViewDatasource protocol function's implementation. | |
(BOOL) | - shouldAutorotateToInterfaceOrientation: [implementation] |
(UITableViewCell *) | - tableView:cellForRowAtIndexPath: |
UITableViewDatasource protocol function's implementation. | |
(void) | - tableView:didSelectRowAtIndexPath: [implementation] |
UITableViewDelegate protocol function left for later implementation. | |
(CGFloat) | - tableView:heightForHeaderInSection: |
UITableViewDelegate protocol function's implementation. | |
(CGFloat) | - tableView:heightForRowAtIndexPath: |
UITableViewDelegate protocol function's implementation. | |
(NSInteger) | - tableView:numberOfRowsInSection: |
UITableViewDatasource protocol function's implementation. | |
(UIView *) | - tableView:viewForHeaderInSection: |
UITableViewDelegate protocol function's implementation. | |
(void) | - viewDidAppear: [implementation] |
(void) | - viewDidDisappear: [implementation] |
(void) | - viewDidLoad [implementation] |
(void) | - viewDidUnload [implementation] |
(void) | - viewWillAppear: [implementation] |
(void) | - viewWillDisappear: [implementation] |
Protected Attributes | |
CatNiPViewController * | master |
Properties | |
NSString * | composer |
NSString * | composition |
NSString * | description |
IBOutlet CatNiPViewController * | master |
NSDictionary * | metaDataDict |
NSArray * | sortedKeys |
Shows all the details for the chosen score in tableview.
Used by UIPopoverController.
API up to date 28.6.2011
Definition at line 10 of file DetailPopoverController.h.
- (void) dealloc | [implementation] |
Definition at line 37 of file DetailPopoverController.m.
References composer, composition, description, metaDataDict, and sortedKeys.
- (void) didReceiveMemoryWarning | [implementation] |
Definition at line 47 of file DetailPopoverController.m.
- (id) initWithStyle: | (UITableViewStyle) | style | |
masterController: | (CatNiPViewController *) | controller | |
dictionary: | (NSDictionary *) | dict | |
Basic init for DETAILPopoverController, sets masterController = controller.
initWithStyle,: | check framework's API for UITableViewStyles |
masterController | master viewController in which this popover is represented. |
Definition at line 23 of file DetailPopoverController.m.
- (NSInteger) numberOfSectionsInTableView: | (UITableView *) | tableView |
UITableViewDatasource protocol function's implementation.
Returns 1
numberOfSectionInTableView | self.tableView |
Definition at line 115 of file DetailPopoverController.m.
- (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation | [implementation] |
Definition at line 100 of file DetailPopoverController.m.
- (UITableViewCell *) tableView: | (UITableView *) | tableView | |
cellForRowAtIndexPath: | (NSIndexPath *) | indexPath | |
UITableViewDatasource protocol function's implementation.
tableView | self.tableView |
cellForRowAtIndexPath | indexPath for cell to be created |
Definition at line 141 of file DetailPopoverController.m.
- (void) tableView: | (UITableView *) | tableView | |
didSelectRowAtIndexPath: | (NSIndexPath *) | indexPath | |
[implementation] |
UITableViewDelegate protocol function left for later implementation.
Not implemented yet.
tableView | self.tableView |
didSelectRowAtIndexPath | selected cell's indexPath |
Definition at line 281 of file DetailPopoverController.m.
- (CGFloat) tableView: | (UITableView *) | tableView | |
heightForHeaderInSection: | (NSInteger) | section | |
UITableViewDelegate protocol function's implementation.
Returns 23
tableView | self.tableView |
heightForHeaderInSection | Section 0 = composer, 1 = composition, 2 = scoreName and 3 = otherInfo |
Definition at line 205 of file DetailPopoverController.m.
- (CGFloat) tableView: | (UITableView *) | tableView | |
heightForRowAtIndexPath: | (NSIndexPath *) | indexPath | |
UITableViewDelegate protocol function's implementation.
Calculate row's height based on cell.textLabel.text's length. Calculation formula is: (((int)(length / 55)+1) * 17) + 20;
tableView | self.tableView |
indexPath | Section 0 = composer, 1 = composition, 2 = scoreName and 3+ = other info found from IMSLP. |
Definition at line 173 of file DetailPopoverController.m.
- (NSInteger) tableView: | (UITableView *) | tableView | |
numberOfRowsInSection: | (NSInteger) | section | |
UITableViewDatasource protocol function's implementation.
Returns 1
tableView | self.tableView |
numberOfRowsInSection | only one row in each section |
Definition at line 129 of file DetailPopoverController.m.
- (UIView *) tableView: | (UITableView *) | tableView | |
viewForHeaderInSection: | (NSInteger) | section | |
UITableViewDelegate protocol function's implementation.
Creates UILabel with text indicating the information about the score that is represented in the section. Texts for sections: 0 = Composer, 1 = Composition, 2 = Score name and 3+ = other info found from IMSLP;
tableView | self.tableView |
viewForHeaderInSection | Section 0 = composer, 1 = composition, 2 = scoreName and 3 = otherInfo |
Definition at line 220 of file DetailPopoverController.m.
- (void) viewDidAppear: | (BOOL) | animated | [implementation] |
Definition at line 84 of file DetailPopoverController.m.
- (void) viewDidDisappear: | (BOOL) | animated | [implementation] |
Definition at line 94 of file DetailPopoverController.m.
- (void) viewDidLoad | [implementation] |
Definition at line 56 of file DetailPopoverController.m.
- (void) viewDidUnload | [implementation] |
Definition at line 67 of file DetailPopoverController.m.
- (void) viewWillAppear: | (BOOL) | animated | [implementation] |
Definition at line 79 of file DetailPopoverController.m.
- (void) viewWillDisappear: | (BOOL) | animated | [implementation] |
Definition at line 89 of file DetailPopoverController.m.
- (CatNiPViewController*) master [protected] |
Definition at line 17 of file DetailPopoverController.h.
- (NSString *) composer [read, write, retain] |
Definition at line 12 of file DetailPopoverController.h.
- (NSString *) composition [read, write, retain] |
Definition at line 13 of file DetailPopoverController.h.
- (NSString *) description [read, write, retain] |
Definition at line 14 of file DetailPopoverController.h.
- (IBOutlet CatNiPViewController*) master [read, write, retain] |
Definition at line 28 of file DetailPopoverController.h.
- (NSDictionary *) metaDataDict [read, write, copy] |
Definition at line 15 of file DetailPopoverController.h.
- (NSArray *) sortedKeys [read, write, retain] |
Definition at line 16 of file DetailPopoverController.h.