Skip to content

Commit

Permalink
Added readonly current index property.
Browse files Browse the repository at this point in the history
  • Loading branch information
btate committed May 30, 2014
1 parent 1801ed0 commit c1b3901
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion BTGridPager/BTGridPager.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,20 @@ typedef NSUInteger BTGridResetMode;
@protocol BTGridPagerDelegate;
@protocol BTGridPagerDataSource;

@interface BTGridPager : UIScrollView<UIScrollViewDelegate>
@interface BTGridPager : UIScrollView<UIScrollViewDelegate>{
@private
__strong BTGridIndex *_currentIndex;
}

/** Data Source for the grid pager. */
@property (nonatomic, weak) IBOutlet id<BTGridPagerDataSource> gridPagerDataSource;

/** Delegate for grid pager actions. */
@property (nonatomic, weak) IBOutlet id<BTGridPagerDelegate> gridPagerDelegate;

/** The current index being displayed. */
@property (nonatomic, readonly) BTGridIndex *currentIndex;

/** Number of views to load on each side of currently viewed slide.
* Defaults to 1
*/
Expand Down
1 change: 0 additions & 1 deletion BTGridPager/BTGridPager.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ @interface BTGridPager(){
@private
CGPoint _lastOffset;
int _numRows;
__strong BTGridIndex *_currentIndex;

}

Expand Down

0 comments on commit c1b3901

Please sign in to comment.