Skip to content

Commit

Permalink
[pagingscrollview] Stylistic cleanup of the subclassing header.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Nov 14, 2012
1 parent 9fee412 commit a523573
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/pagingscrollview/src/NIPagingScrollView+Subclassing.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#import "NIPagingScrollView.h"

// Methods that are meant to be subclassed.
@interface NIPagingScrollView (Subclassing)

// Meant to be subclassed. Default implementations are stubs.
Expand All @@ -25,9 +26,13 @@
- (void)didChangeCenterPageIndexFrom:(NSInteger)from to:(NSInteger)to;

// Meant to be subclassed.
- (UIView<NIPagingScrollViewPage>* )loadPageAtIndex:(NSInteger)pageIndex;
- (UIView<NIPagingScrollViewPage> *)loadPageAtIndex:(NSInteger)pageIndex;

@end

// Methods that are not meant to be subclassed.
@interface NIPagingScrollView (ProtectedMethods)

// Not meant to be subclassed.
- (void)setCenterPageIndexIvar:(NSInteger)centerPageIndex;
- (void)recyclePageAtIndex:(NSInteger)pageIndex;
- (void)displayPageAtIndex:(NSInteger)pageIndex;
Expand Down
2 changes: 1 addition & 1 deletion src/pagingscrollview/src/NIPagingScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ - (void)resetSurroundingPages {


///////////////////////////////////////////////////////////////////////////////////////////////////
- (UIView<NIPagingScrollViewPage>* )loadPageAtIndex:(NSInteger)pageIndex {
- (UIView<NIPagingScrollViewPage> *)loadPageAtIndex:(NSInteger)pageIndex {
UIView<NIPagingScrollViewPage>* page = [self.dataSource pagingScrollView:self
pageViewForIndex:pageIndex];
NIDASSERT([page isKindOfClass:[UIView class]]);
Expand Down

0 comments on commit a523573

Please sign in to comment.