SIBListModeAppearance Protocol Reference
Conforms to | NSObject |
Declared in | SIBListModeAppearance.h |
Overview
Since SCItemListBrowser overrides the UITableViewDelegate and UITableViewDataSource protocols, there should be some way to configure cells appearance.
Override methods of this protocol to forward your values to the UITableView and customize its appearance.
Tasks
-
– levelHeaderTitleForTableViewSectionOfItemsBrowser:
Sets the title to the header of the only table view section. If [SIBListModeAppearance levelHeaderViewForTableViewSectionOfItemsBrowser:] is specified this one will be ignored.
See [UITableViewDataSource tableView:titleForHeaderInSection:] for details. -
– levelFooterTitleForTableViewSectionOfItemsBrowser:
Sets the title to the footer of the only table view section. If [SIBListModeAppearance levelFooterViewForTableViewSectionOfItemsBrowser:] is specified this one will be ignored.
See [UITableViewDataSource tableView:titleForFooterInSection:] for details. -
– levelHeaderViewForTableViewSectionOfItemsBrowser:
Custom view for header. Will be adjusted to default or specified header height.
-
– levelFooterViewForTableViewSectionOfItemsBrowser:
Custom view for footer. Will be adjusted to default or specified footer height.
-
– levelHeaderHeightForTableViewSectionOfItemsBrowser:
Height of the section header.
-
– levelFooterHeightForTableViewSectionOfItemsBrowser:
Height of the section footer.
-
– itemsBrowser:levelUpCellHeigtAtIndexPath:
Height of the level up cell.
-
– itemsBrowser:heightOfCellForItem:atIndexPath:
Height of the item cell. Feel free to make it different for various types of items.
Instance Methods
itemsBrowser:heightOfCellForItem:atIndexPath:
Height of the item cell. Feel free to make it different for various types of items.
- (CGFloat)itemsBrowser:(SCItemListBrowser *)sender heightOfCellForItem:(SCItem *)item atIndexPath:(NSIndexPath *)indexPath
Parameters
- sender
An instance of the SCItemListBrowser controller.
- item
An item to be rendered in this cell.
- indexPath
NSIndexPath for the item cell.
Return Value
Height of the item cell. It will be forwarded to [UITableViewDelegate tableView:heightForRowAtIndexPath:]
Declared In
SIBListModeAppearance.h
itemsBrowser:levelUpCellHeigtAtIndexPath:
Height of the level up cell.
- (CGFloat)itemsBrowser:(SCItemListBrowser *)sender levelUpCellHeigtAtIndexPath:(NSIndexPath *)indexPath
Parameters
- sender
An instance of the SCItemListBrowser controller.
- indexPath
NSIndexPath for the level up cell.
Return Value
Height of the level up cell. It will be forwarded to [UITableViewDelegate tableView:heightForRowAtIndexPath:]
Declared In
SIBListModeAppearance.h
levelFooterHeightForTableViewSectionOfItemsBrowser:
Height of the section footer.
- (CGFloat)levelFooterHeightForTableViewSectionOfItemsBrowser:(SCItemListBrowser *)sender
Parameters
- sender
An instance of the SCItemListBrowser controller.
Return Value
Height of the section footer. It will be forwarded to [UITableViewDelegate tableView:heightForFooterInSection:]
Declared In
SIBListModeAppearance.h
levelFooterTitleForTableViewSectionOfItemsBrowser:
Sets the title to the footer of the only table view section. If [SIBListModeAppearance levelFooterViewForTableViewSectionOfItemsBrowser:] is specified this one will be ignored.
See [UITableViewDataSource tableView:titleForFooterInSection:] for details.
- (NSString *)levelFooterTitleForTableViewSectionOfItemsBrowser:(SCItemListBrowser *)sender
Parameters
- sender
An instance of the SCItemListBrowser controller
Return Value
header title. It will be forwarded to [UITableViewDataSource tableView:titleForFooterInSection:]
Declared In
SIBListModeAppearance.h
levelFooterViewForTableViewSectionOfItemsBrowser:
Custom view for footer. Will be adjusted to default or specified footer height.
- (UIView *)levelFooterViewForTableViewSectionOfItemsBrowser:(SCItemListBrowser *)sender
Parameters
- sender
An instance of the SCItemListBrowser controller.
Return Value
A custom view for the section footer. It will be forwarded to [UITableViewDelegate tableView:viewForFooterInSection:]
Declared In
SIBListModeAppearance.h
levelHeaderHeightForTableViewSectionOfItemsBrowser:
Height of the section header.
- (CGFloat)levelHeaderHeightForTableViewSectionOfItemsBrowser:(SCItemListBrowser *)sender
Parameters
- sender
An instance of the SCItemListBrowser controller
Return Value
Height of the section header. It will be forwarded to [UITableViewDelegate tableView:heightForHeaderInSection:]
Declared In
SIBListModeAppearance.h
levelHeaderTitleForTableViewSectionOfItemsBrowser:
Sets the title to the header of the only table view section. If [SIBListModeAppearance levelHeaderViewForTableViewSectionOfItemsBrowser:] is specified this one will be ignored.
See [UITableViewDataSource tableView:titleForHeaderInSection:] for details.
- (NSString *)levelHeaderTitleForTableViewSectionOfItemsBrowser:(SCItemListBrowser *)sender
Parameters
- sender
An instance of the SCItemListBrowser controller
Return Value
header title. It will be forwarded to [UITableViewDataSource tableView:titleForHeaderInSection:]
Declared In
SIBListModeAppearance.h
levelHeaderViewForTableViewSectionOfItemsBrowser:
Custom view for header. Will be adjusted to default or specified header height.
- (UIView *)levelHeaderViewForTableViewSectionOfItemsBrowser:(SCItemListBrowser *)sender
Parameters
- sender
An instance of the SCItemListBrowser controller
Return Value
A custom view for the section header. It will be forwarded to [UITableViewDelegate tableView:viewForHeaderInSection:]
Declared In
SIBListModeAppearance.h