Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RATreeView.podspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"tag": "v2.1.5"
},
"platforms": {
"ios": "7.0",
"ios": "11.0",
"tvos": "9.0"
},
"source_files": "RATreeView/RATreeView/**/*.{h,m}",
Expand Down
4 changes: 2 additions & 2 deletions RATreeView/RATreeView/Private Files/RABatchChangeEntity.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ typedef NS_ENUM(NSInteger, RABatchChangeType) {

@property (nonatomic) RABatchChangeType type;
@property (nonatomic) NSInteger ranking;
@property (nonatomic, copy) void(^updatesBlock)();
@property (nonatomic, copy) void(^updatesBlock)(void);

+ (instancetype)batchChangeEntityWithBlock:(void(^)())updates type:(RABatchChangeType)type ranking:(NSInteger)ranking;
+ (instancetype)batchChangeEntityWithBlock:(void(^)(void))updates type:(RABatchChangeType)type ranking:(NSInteger)ranking;

@end

2 changes: 1 addition & 1 deletion RATreeView/RATreeView/Private Files/RABatchChangeEntity.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@implementation RABatchChangeEntity

+ (instancetype)batchChangeEntityWithBlock:(void (^)())updates type:(RABatchChangeType)type ranking:(NSInteger)ranking
+ (instancetype)batchChangeEntityWithBlock:(void (^)(void))updates type:(RABatchChangeType)type ranking:(NSInteger)ranking
{
NSParameterAssert(updates);
RABatchChangeEntity *entity = [RABatchChangeEntity new];
Expand Down
10 changes: 5 additions & 5 deletions RATreeView/RATreeView/Private Files/RABatchChanges.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
- (void)beginUpdates;
- (void)endUpdates;

- (void)expandItemWithBlock:(void(^)())update atIndex:(NSInteger)index;
- (void)insertItemWithBlock:(void(^)())update atIndex:(NSInteger)index;
- (void)expandItemWithBlock:(void(^)(void))update atIndex:(NSInteger)index;
- (void)insertItemWithBlock:(void(^)(void))update atIndex:(NSInteger)index;

- (void)collapseItemWithBlock:(void(^)())update lastIndex:(NSInteger)index;
- (void)deleteItemWithBlock:(void(^)())update lastIndex:(NSInteger)index;
- (void)collapseItemWithBlock:(void(^)(void))update lastIndex:(NSInteger)index;
- (void)deleteItemWithBlock:(void(^)(void))update lastIndex:(NSInteger)index;

- (void)moveItemWithDeletionBlock:(void (^)())deletionUpdate fromLastIndex:(NSInteger)lastIndex additionBlock:(void (^)())additionUpdate toIndex:(NSInteger)index;
- (void)moveItemWithDeletionBlock:(void (^)(void))deletionUpdate fromLastIndex:(NSInteger)lastIndex additionBlock:(void (^)(void))additionUpdate toIndex:(NSInteger)index;

@end
10 changes: 5 additions & 5 deletions RATreeView/RATreeView/Private Files/RABatchChanges.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,39 +63,39 @@ - (void)endUpdates
}
}

- (void)insertItemWithBlock:(void (^)())update atIndex:(NSInteger)index
- (void)insertItemWithBlock:(void (^)(void))update atIndex:(NSInteger)index
{
RABatchChangeEntity *entity = [RABatchChangeEntity batchChangeEntityWithBlock:update
type:RABatchChangeTypeItemRowInsertion
ranking:index];
[self addBatchChangeEntity:entity];
}

- (void)expandItemWithBlock:(void (^)())update atIndex:(NSInteger)index
- (void)expandItemWithBlock:(void (^)(void))update atIndex:(NSInteger)index
{
RABatchChangeEntity *entity= [RABatchChangeEntity batchChangeEntityWithBlock:update
type:RABatchChangeTypeItemRowExpansion
ranking:index];
[self addBatchChangeEntity:entity];
}

- (void)deleteItemWithBlock:(void (^)())update lastIndex:(NSInteger)lastIndex
- (void)deleteItemWithBlock:(void (^)(void))update lastIndex:(NSInteger)lastIndex
{
RABatchChangeEntity *entity = [RABatchChangeEntity batchChangeEntityWithBlock:update
type:RABatchChangeTypeItemRowDeletion
ranking:lastIndex];
[self addBatchChangeEntity:entity];
}

- (void)collapseItemWithBlock:(void (^)())update lastIndex:(NSInteger)lastIndex
- (void)collapseItemWithBlock:(void (^)(void))update lastIndex:(NSInteger)lastIndex
{
RABatchChangeEntity *entity = [RABatchChangeEntity batchChangeEntityWithBlock:update
type:RABatchChangeTypeItemRowCollapse
ranking:lastIndex];
[self addBatchChangeEntity:entity];
}

- (void)moveItemWithDeletionBlock:(void (^)())deletionUpdate fromLastIndex:(NSInteger)lastIndex additionBlock:(void (^)())additionUpdate toIndex:(NSInteger)index
- (void)moveItemWithDeletionBlock:(void (^)(void))deletionUpdate fromLastIndex:(NSInteger)lastIndex additionBlock:(void (^)(void))additionUpdate toIndex:(NSInteger)index
{
RABatchChangeEntity *firstEntity = [RABatchChangeEntity batchChangeEntityWithBlock:deletionUpdate
type:RABatchChangeTypeItemRowDeletion
Expand Down
4 changes: 0 additions & 4 deletions RATreeView/RATreeView/Private Files/RATreeView+Enums.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ + (RATreeViewCellSeparatorStyle)treeViewCellSeparatorStyleForTableViewSeparatorS
return RATreeViewCellSeparatorStyleNone;
case UITableViewCellSeparatorStyleSingleLine:
return RATreeViewCellSeparatorStyleSingleLine;
case UITableViewCellSeparatorStyleSingleLineEtched:
return RATreeViewCellSeparatorStyleSingleLineEtched;
default:
return RATreeViewCellSeparatorStyleNone;
}
Expand All @@ -74,8 +72,6 @@ + (UITableViewCellSeparatorStyle)tableViewCellSeparatorStyleForTreeViewCellSepar
return UITableViewCellSeparatorStyleNone;
case RATreeViewCellSeparatorStyleSingleLine:
return UITableViewCellSeparatorStyleSingleLine;
case RATreeViewCellSeparatorStyleSingleLineEtched:
return UITableViewCellSeparatorStyleSingleLineEtched;
default:
return UITableViewCellSeparatorStyleNone;
}
Expand Down
3 changes: 0 additions & 3 deletions RATreeView/RATreeView/RATreeView.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ typedef enum RATreeViewRowAnimation {
*
* @param treeView The tree-view that sent the message.
* @param item An item identifying a cell in tree view.
* @param treeNodeInfo Object including additional information about item.
*
* @return The number of child items encompassed by item. If item is nil, this method should return the number of children for the top-level item.
*/
Expand Down Expand Up @@ -105,7 +104,6 @@ typedef enum RATreeViewRowAnimation {
* @param treeView The tree-view object requesting the insertion or deletion.
* @param editingStyle The cell editing style corresponding to a insertion or deletion requested for the row specified by item. Possible editing styles are `UITableViewCellEditingStyleInsert` or `UITableViewCellEditingStyleDelete`.
* @param item An item identifying a cell in tree view.
* @param treeNodeInfo Object including additional information about item.
*/
- (void)treeView:(RATreeView *)treeView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowForItem:(id)item;

Expand Down Expand Up @@ -413,7 +411,6 @@ typedef enum RATreeViewRowAnimation {
* Asks the delegate if the row for a specified item should be highlighted.
*
* @param treeView The tree-view object that is making this request.
* @param treeNodeInfo Object including additional information about item.
*
* @return YES if the row should be highlighted or NO if it should not.
*/
Expand Down