Skip to content

Commit

Permalink
Merge from rantav - support for showing/hiding horizontal and vertica…
Browse files Browse the repository at this point in the history
…l scroll indicator
  • Loading branch information
rantav authored and gmoledina committed Dec 13, 2011
1 parent 3af325f commit cd8f646
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GMGridView/API/GMGridView.h
Expand Up @@ -83,6 +83,8 @@ typedef enum
@property (nonatomic) UIEdgeInsets minEdgeInsets; // Default is (5, 5, 5, 5)
@property (nonatomic) CFTimeInterval minimumPressDuration; // Default is 0.2; if set to 0, the scrollView will not be scrollable
@property (nonatomic) BOOL showFullSizeViewWithAlphaWhenTransforming; // Default is YES - not working right now
@property (nonatomic) BOOL showsVerticalScrollIndicator; // Default is YES
@property (nonatomic) BOOL showsHorizontalScrollIndicator; // Default is YES


// Reusable cells
Expand Down
21 changes: 21 additions & 0 deletions GMGridView/API/GMGridView.m
Expand Up @@ -336,6 +336,27 @@ - (void)setEditing:(BOOL)editing
}
}

- (void)setShowsVerticalScrollIndicator:(BOOL)showsVerticalScroll
{
_scrollView.showsVerticalScrollIndicator = showsVerticalScroll;
}

- (BOOL)showsVerticalScrollIndicator
{
return _scrollView.showsVerticalScrollIndicator;
}

- (void)setShowsHorizontalScrollIndicator:(BOOL)showsHorizontalScrollIndicator
{
_scrollView.showsHorizontalScrollIndicator = showsHorizontalScrollIndicator;
}

- (BOOL)showsHorizontalScrollIndicator
{
return _scrollView.showsHorizontalScrollIndicator;
}


//////////////////////////////////////////////////////////////
#pragma mark UIScrollView delegate
//////////////////////////////////////////////////////////////
Expand Down

0 comments on commit cd8f646

Please sign in to comment.