FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
<UIASubviewTableSubviewSource> Protocol Reference

This protocol defines data source and subview source methods for UIASubviewTableView objects. More...

#import <UIASubviewTableView.h>

Inheritance diagram for <UIASubviewTableSubviewSource>:

Instance Methods

(NSUInteger) - subviewTableViewNumberOfSubviews:
 Asks the subview source the number of subviews. More...
 
(UIView *) - subviewTableView:viewForRow:
 Asks the subview source the view for given row. More...
 
(CGFloat) - subviewTableView:viewHeightForRow:
 Asks the subview source the height of view for given row. More...
 
Forwardings
(BOOL) - tableView:canEditRowAtIndexPath:
 Forwarding method for UITableViewDataSource. More...
 
(BOOL) - tableView:canMoveRowAtIndexPath:
 Forwarding method for UITableViewDataSource. More...
 
(NSInteger) - tableView:sectionForSectionIndexTitle:atIndex:
 Forwarding method for UITableViewDataSource. More...
 
(void) - tableView:commitEditingStyle:forRowAtIndexPath:
 Forwarding method for UITableViewDataSource. More...
 
(void) - tableView:moveRowAtIndexPath:toIndexPath:
 Forwarding method for UITableViewDataSource. More...
 

Detailed Description

This protocol defines data source and subview source methods for UIASubviewTableView objects.

This covers optional methods of data source, because table view self-implemented its required methods.

Method Documentation

- (UIView *) subviewTableView: (UIASubviewTableView *)  scrollView
viewForRow: (NSUInteger)  row 

Asks the subview source the view for given row.

- (CGFloat) subviewTableView: (UIASubviewTableView *)  scrollView
viewHeightForRow: (NSUInteger)  row 
optional

Asks the subview source the height of view for given row.

This is used to avoid referencing real view for row to calculate height for the row. If not implemented, default value is view.frame.size.height for each view.

Warning
This doesn't work if you implement tableView:heightForRowAtIndexPath:.
- (NSUInteger) subviewTableViewNumberOfSubviews: (UIASubviewTableView *)  scrollView

Asks the subview source the number of subviews.

- (BOOL) tableView: (UITableView *)  tableView
canEditRowAtIndexPath: (NSIndexPath *)  indexPath 

Forwarding method for UITableViewDataSource.

- (BOOL) tableView: (UITableView *)  tableView
canMoveRowAtIndexPath: (NSIndexPath *)  indexPath 

Forwarding method for UITableViewDataSource.

- (void) tableView: (UITableView *)  tableView
commitEditingStyle: (UITableViewCellEditingStyle)  editingStyle
forRowAtIndexPath: (NSIndexPath *)  indexPath 

Forwarding method for UITableViewDataSource.

- (void) tableView: (UITableView *)  tableView
moveRowAtIndexPath: (NSIndexPath *)  sourceIndexPath
toIndexPath: (NSIndexPath *)  destinationIndexPath 

Forwarding method for UITableViewDataSource.

- (NSInteger) tableView: (UITableView *)  tableView
sectionForSectionIndexTitle: (NSString *)  title
atIndex: (NSInteger)  index 

Forwarding method for UITableViewDataSource.


The documentation for this protocol was generated from the following file: