Skip to content

Commit

Permalink
Merge pull request #63 from pronebird/documentation-warnings-fix
Browse files Browse the repository at this point in the history
Documentation warnings fix
  • Loading branch information
pronebird authored Jul 22, 2017
2 parents 2ef91c3 + ed736c4 commit b507379
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= 1.0.2 (2017-07-22)

* Fixed documentation warnings (@musbaalbaki, @pronebird)

= 1.0.1 (2017-04-12)

* Fixed bug when there was weird animation which shifts offset (@rr-dw)
Expand Down
14 changes: 7 additions & 7 deletions Classes/UIScrollView+InfiniteScroll.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static void PBSwizzleMethod(Class c, SEL original, SEL alternate) {
*
* See https://github.com/pronebird/UIScrollView-InfiniteScroll/issues/31
*
* @param tableView
* @param tableView table view
*/
static void PBForceUpdateTableViewContentSize(UITableView *tableView) {
tableView.contentSize = [tableView sizeThatFits:CGSizeMake(CGRectGetWidth(tableView.frame), CGFLOAT_MAX)];
Expand Down Expand Up @@ -76,8 +76,8 @@ @interface _PBInfiniteScrollState : NSObject
@property (nonatomic) UIActivityIndicatorViewStyle indicatorStyle;

/**
* Flag used to return user back to top of scroll view
* when loading initial content
* Flag used to return user back to top of scroll view
* when loading initial content.
*/
@property (nonatomic) BOOL scrollToTopWhenFinished;

Expand Down Expand Up @@ -298,7 +298,7 @@ + (void)load {
/**
* Additional pan gesture handler used to adjust content offset to reveal or hide indicator view.
*
* @param gestureRecognizer
* @param gestureRecognizer gesture recognizer
*/
- (void)pb_handlePanGesture:(UITapGestureRecognizer *)gestureRecognizer {
if(gestureRecognizer.state == UIGestureRecognizerStateEnded) {
Expand All @@ -309,7 +309,7 @@ - (void)pb_handlePanGesture:(UITapGestureRecognizer *)gestureRecognizer {
/**
* This is a swizzled proxy method for setContentOffset of UIScrollView.
*
* @param contentOffset
* @param contentOffset content offset
*/
- (void)pb_setContentOffset:(CGPoint)contentOffset {
[self pb_setContentOffset:contentOffset];
Expand All @@ -322,7 +322,7 @@ - (void)pb_setContentOffset:(CGPoint)contentOffset {
/**
* This is a swizzled proxy method for setContentSize of UIScrollView
*
* @param contentSize
* @param contentSize content size
*/
- (void)pb_setContentSize:(CGSize)contentSize {
[self pb_setContentSize:contentSize];
Expand Down Expand Up @@ -591,7 +591,7 @@ - (BOOL)pb_shouldShowInfiniteScroll {
/**
* Called whenever content offset changes.
*
* @param contentOffset
* @param contentOffset content offset
*/
- (void)pb_scrollViewDidScroll:(CGPoint)contentOffset {
_PBInfiniteScrollState *state = self.pb_infiniteScrollState;
Expand Down
2 changes: 1 addition & 1 deletion UIScrollView-InfiniteScroll.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'UIScrollView-InfiniteScroll'
s.version = '1.0.1'
s.version = '1.0.2'
s.license = 'MIT'
s.summary = 'UIScrollView infinite scroll category.'
s.homepage = 'https://github.com/pronebird/UIScrollView-InfiniteScroll'
Expand Down

0 comments on commit b507379

Please sign in to comment.