Skip to content

Commit 40375f1

Browse files
author
Ernesto Rivera
committed
Move methods around
1 parent 7d0f731 commit 40375f1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Source/AMBTableViewController.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
/// The presented sections.
4242
@property (strong, nonatomic) NSArray * sections;
4343

44-
4544
/// @name Managing Sections
4645

4746
/// Insert a section into the sections array.
@@ -70,13 +69,12 @@
7069
- (void)replaceSectionAtIndex:(NSUInteger)index
7170
withSection:(AMBTableViewSection *)section;
7271

73-
/// @name Refreshing the Table View Contents
72+
73+
/// @name Convenience Methods
7474

7575
/// Trigger [AMBTableViewSection update] on all sections.
7676
- (void)updateAllSections;
7777

78-
/// @name Convenience Methods
79-
8078
/// Combine several section and row changes between [UITableView beginUpdates] and
8179
/// [UITableView endUpdates].
8280
- (void)combineChanges:(void (^)(void))changes;

Source/AMBTableViewController.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ - (void)replaceSectionAtIndex:(NSUInteger)index
117117
[section reload];
118118
}
119119

120+
121+
#pragma mark - Convenience methods
122+
120123
- (void)updateAllSections
121124
{
122125
for (AMBTableViewSection * section in self.sections)
@@ -125,8 +128,6 @@ - (void)updateAllSections
125128
}
126129
}
127130

128-
#pragma mark - Convenience methods
129-
130131
- (void)combineChanges:(void (^)(void))changes
131132
{
132133
if (self.tableView)

0 commit comments

Comments
 (0)