Skip to content

Commit

Permalink
Restore -[NIPagingScrollView pagingScrollView] and mark it deprecated…
Browse files Browse the repository at this point in the history
… with pending removal.
  • Loading branch information
stephanemoore committed Feb 19, 2014
1 parent f22e19d commit 16228df
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/pagingscrollview/src/NIPagingScrollView+Subclassing.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@

@end

// Deprecated methods formerly used by subclasses.
// This category will be removed on February 28, 2014.
@interface NIPagingScrollView (DeprecatedSubclassingMethods)

// Use -[NIPagingScrollView scrollView] instead.
- (UIScrollView *)pagingScrollView __NI_DEPRECATED_METHOD;

@end

/**
* Called before the page is about to be shown and after its frame has been set.
*
Expand Down
9 changes: 9 additions & 0 deletions src/pagingscrollview/src/NIPagingScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -702,4 +702,13 @@ - (NSMutableSet *)visiblePages {
return _visiblePages;
}

#pragma mark - Deprecated Methods

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"
- (UIScrollView *)pagingScrollView {
return [self scrollView];
}
#pragma clang diagnostic pop

@end

0 comments on commit 16228df

Please sign in to comment.