RETableViewSection Class Reference
| Inherits from | NSObject |
| Declared in | RETableViewSection.h RETableViewSection.m |
Tasks
Other Methods
-
itemsAn array of section items (rows).
property -
headerTitleThe title of the header of the specified section of the table view.
property -
footerTitleThe title of the footer of the specified section of the table view.
property -
headerViewA view object to display in the header of the specified section of the table view.
property -
footerViewA view object to display in the footer of the specified section of the table view.
property -
tableViewManagerThe title of of this section.
property -
indexSection index in UITableView.
property
Creating and Initializing a RETableViewSection
-
+ sectionCreates and returns a new section.
-
+ sectionWithHeaderTitle:Creates and returns a new section with predefined header title.
-
+ sectionWithHeaderTitle:footerTitle:Creates and returns a new section with predefined header and footer titles.
-
+ sectionWithHeaderView:Creates and returns a new section containing a header view.
-
+ sectionWithHeaderView:footerView:Creates and returns a new section containing header and footer views.
-
– initWithHeaderTitle:Initializes a newly allocated section and sets header title.
-
– initWithHeaderTitle:footerTitle:Initializes a newly allocated section with header and footer titles.
-
– initWithHeaderView:Initializes a newly allocated section containing a header view.
-
– initWithHeaderView:footerView:Initializes a newly allocated section containing header and footer views.
Adding Items
-
– addItem:Inserts a given item at the end of the section.
-
– addItemsFromArray:Adds the items contained in another given array to the end of the section.
-
– insertItem:atIndex: -
– insertItems:atIndexes:Inserts the items in the provided items array into the section at the specified indexes.
Removing Items
-
– removeItem:Removes all occurrences in the section of a given item.
-
– removeAllItems -
– removeItemIdenticalTo:inRange:Removes all occurrences of item within the specified range in the section.
-
– removeItemIdenticalTo:Removes all occurrences of a given item in the section.
-
– removeItemsInArray: -
– removeItemsInRange:Removes from the section each of the items within a given range.
-
– removeItem:inRange:Removes all occurrences within a specified range in the section of a given item.
-
– removeLastItemRemoves the item with the highest-valued index in the section.
-
– removeItemAtIndex:Removes the item at index.
-
– removeItemsAtIndexes:Removes the items at the specified indexes from the section.
Replacing Items
-
– replaceItemAtIndex:withItem:Replaces the item at index with another item.
-
– replaceItemsWithItemsFromArray:Replaces the items in the section with all of the items from a given array.
-
– replaceItemsAtIndexes:withItems:Replaces the items in the section at specified locations specified with the items from a given array.
-
– replaceItemsInRange:withItemsFromArray:range:Replaces the items in the section by one given range with the items in another array specified by another range.
-
– replaceItemsInRange:withItemsFromArray:Replaces the items in the section specified by a given range with all of the items from a given array.
Rearranging Items
-
– exchangeItemAtIndex:withItemAtIndex: -
– sortItemsUsingFunction:context:Sorts the items in ascending order as defined by the comparison function compare.
Manipulating table view section
-
– reloadSectionWithAnimation:Reloads the
sectionusing a given animation effect.
Properties
footerTitle
The title of the footer of the specified section of the table view.
@property (copy, readwrite, nonatomic) NSString *footerTitleDiscussion
The title of the footer of the specified section of the table view.
Declared In
RETableViewSection.hfooterView
A view object to display in the footer of the specified section of the table view.
@property (strong, readwrite, nonatomic) UIView *footerViewDiscussion
A view object to display in the footer of the specified section of the table view.
Declared In
RETableViewSection.hheaderTitle
The title of the header of the specified section of the table view.
@property (copy, readwrite, nonatomic) NSString *headerTitleDiscussion
The title of the header of the specified section of the table view.
Declared In
RETableViewSection.hheaderView
A view object to display in the header of the specified section of the table view.
@property (strong, readwrite, nonatomic) UIView *headerViewDiscussion
A view object to display in the header of the specified section of the table view.
Declared In
RETableViewSection.hindex
Section index in UITableView.
@property (assign, readonly, nonatomic) NSUInteger indexDiscussion
Section index in UITableView.
Declared In
RETableViewSection.hClass Methods
section
Creates and returns a new section.
+ (id)sectionReturn Value
A new section.
Discussion
Creates and returns a new section.
Declared In
RETableViewSection.hsectionWithHeaderTitle:
Creates and returns a new section with predefined header title.
+ (id)sectionWithHeaderTitle:(NSString *)headerTitleParameters
- headerTitle
A header title.
Return Value
A new section with defined header title.
Discussion
Creates and returns a new section with predefined header title.
Declared In
RETableViewSection.hsectionWithHeaderTitle:footerTitle:
Creates and returns a new section with predefined header and footer titles.
+ (id)sectionWithHeaderTitle:(NSString *)headerTitle footerTitle:(NSString *)footerTitleParameters
- headerTitle
A header title.
- footerTitle
A footer title.
Return Value
A new section with header and footer titles.
Discussion
Creates and returns a new section with predefined header and footer titles.
Declared In
RETableViewSection.hsectionWithHeaderView:
Creates and returns a new section containing a header view.
+ (id)sectionWithHeaderView:(UIView *)headerViewParameters
- headerView
A header view.
Return Value
A new section containing a header view.
Discussion
Creates and returns a new section containing a header view.
Declared In
RETableViewSection.hsectionWithHeaderView:footerView:
Creates and returns a new section containing header and footer views.
+ (id)sectionWithHeaderView:(UIView *)headerView footerView:(UIView *)footerViewParameters
- headerView
A header view.
- footerView
A footer view.
Return Value
A new section containing header and footer views.
Discussion
Creates and returns a new section containing header and footer views.
Declared In
RETableViewSection.hInstance Methods
addItem:
Inserts a given item at the end of the section.
- (void)addItem:(id)itemParameters
- item
The item to add to the end of the section. This value must not be
nil.
Return Value
The item.
Discussion
Inserts a given item at the end of the section.
Declared In
RETableViewSection.hexchangeItemAtIndex:withItemAtIndex:
- (void)exchangeItemAtIndex:(NSUInteger)idx1 withItemAtIndex:(NSUInteger)idx2Parameters
Declared In
RETableViewSection.hinitWithHeaderTitle:
Initializes a newly allocated section and sets header title.
- (id)initWithHeaderTitle:(NSString *)headerTitleParameters
- headerTitle
A header title.
Return Value
A new section initialized with a header title.
Discussion
Initializes a newly allocated section and sets header title.
Declared In
RETableViewSection.hinitWithHeaderTitle:footerTitle:
Initializes a newly allocated section with header and footer titles.
- (id)initWithHeaderTitle:(NSString *)headerTitle footerTitle:(NSString *)footerTitleParameters
- headerTitle
A header title.
- footerTitle
A footer title.
Return Value
A new section initialized with header and footer titles.
Discussion
Initializes a newly allocated section with header and footer titles.
Declared In
RETableViewSection.hinitWithHeaderView:
Initializes a newly allocated section containing a header view.
- (id)initWithHeaderView:(UIView *)headerViewParameters
- headerView
A header view.
Return Value
A new section initialized containing a header view.
Discussion
Initializes a newly allocated section containing a header view.
Declared In
RETableViewSection.hinitWithHeaderView:footerView:
Initializes a newly allocated section containing header and footer views.
- (id)initWithHeaderView:(UIView *)headerView footerView:(UIView *)footerViewParameters
- headerView
A header view.
- footerView
A footer view.
Return Value
A new section initialized with header and footer views.
Discussion
Initializes a newly allocated section containing header and footer views.
Declared In
RETableViewSection.hinsertItem:atIndex:
- (void)insertItem:(id)item atIndex:(NSUInteger)indexParameters
- item
The item to add to the section. This value must not be nil.
Declared In
RETableViewSection.hinsertItems:atIndexes:
- (void)insertItems:(NSArray *)items atIndexes:(NSIndexSet *)indexesParameters
- indexes
The indexes at which the items should be inserted.
Declared In
RETableViewSection.hreloadSectionWithAnimation:
Reloads the section using a given animation effect.
- (void)reloadSectionWithAnimation:(UITableViewRowAnimation)animationParameters
- animation
A constant that indicates how the reloading is to be animated
Discussion
Reloads the section using a given animation effect.
Declared In
RETableViewSection.hremoveItem:
Removes all occurrences in the section of a given item.
- (void)removeItem:(id)itemParameters
- item
The item to remove from the section.
Discussion
Removes all occurrences in the section of a given item.
Declared In
RETableViewSection.hremoveItem:inRange:
Removes all occurrences within a specified range in the section of a given item.
- (void)removeItem:(id)item inRange:(NSRange)rangeDiscussion
Removes all occurrences within a specified range in the section of a given item.
Declared In
RETableViewSection.hremoveItemAtIndex:
Removes the item at index.
- (void)removeItemAtIndex:(NSUInteger)indexParameters
Discussion
Removes the item at index.
Declared In
RETableViewSection.hremoveItemIdenticalTo:
Removes all occurrences of a given item in the section.
- (void)removeItemIdenticalTo:(id)itemDiscussion
Removes all occurrences of a given item in the section.
Declared In
RETableViewSection.hremoveItemIdenticalTo:inRange:
Removes all occurrences of item within the specified range in the section.
- (void)removeItemIdenticalTo:(id)item inRange:(NSRange)rangeParameters
- item
The item to remove from the section within range.
Discussion
Removes all occurrences of item within the specified range in the section.
Declared In
RETableViewSection.hremoveItemsAtIndexes:
- (void)removeItemsAtIndexes:(NSIndexSet *)indexesParameters
Declared In
RETableViewSection.hremoveItemsInArray:
- (void)removeItemsInArray:(NSArray *)otherArrayDeclared In
RETableViewSection.hreplaceItemAtIndex:withItem:
Replaces the item at index with another item.
- (void)replaceItemAtIndex:(NSUInteger)index withItem:(id)itemParameters
Discussion
Replaces the item at index with another item.
Declared In
RETableViewSection.hreplaceItemsAtIndexes:withItems:
Replaces the items in the section at specified locations specified with the items from a given array.
- (void)replaceItemsAtIndexes:(NSIndexSet *)indexes withItems:(NSArray *)itemsParameters
- indexes
The indexes of the items to be replaced.
Discussion
Replaces the items in the section at specified locations specified with the items from a given array.
Declared In
RETableViewSection.hreplaceItemsInRange:withItemsFromArray:
Replaces the items in the section specified by a given range with all of the items from a given array.
- (void)replaceItemsInRange:(NSRange)range withItemsFromArray:(NSArray *)otherArrayParameters
Discussion
Replaces the items in the section specified by a given range with all of the items from a given array.
Declared In
RETableViewSection.hreplaceItemsInRange:withItemsFromArray:range:
Replaces the items in the section by one given range with the items in another array specified by another range.
- (void)replaceItemsInRange:(NSRange)range withItemsFromArray:(NSArray *)otherArray range:(NSRange)otherRangeParameters
Discussion
Replaces the items in the section by one given range with the items in another array specified by another range.
Declared In
RETableViewSection.hreplaceItemsWithItemsFromArray:
- (void)replaceItemsWithItemsFromArray:(NSArray *)otherArrayDeclared In
RETableViewSection.hsortItemsUsingFunction:context:
Sorts the items in ascending order as defined by the comparison function compare.
- (void)sortItemsUsingFunction:(NSInteger ( *) ( id , id , void *))compare context:(void *)contextParameters
- compare
The comparison function to use to compare two items at a time.
- context
The context argument to pass to the compare function.
Discussion
Sorts the items in ascending order as defined by the comparison function compare.
Declared In
RETableViewSection.h