SMGridViewDelegate Protocol Reference
Conforms to | UIScrollViewDelegate |
Declared in | SMGridView.h |
Overview
Implement This protocol to get notified about certain behaviors of the SMGridView. Important: This object will be used as the origin UIScrollViewDelegate. Never set the property delegate of UIScrollView of a SMGridView, use instead the property [SMGridView gridDelegate]
Tasks
-
– smGridView:didFinishAddingIndexPath:
Called once a new view has been added to the view as a result to a call to [SMGridView addItemAtIndexPath:]
-
– smGridView:didFinishRemovingIndexPath:
Called once a view has been removed as a result to a call to [SMGridView removeItemAtIndexPath:]
-
– smGridView:didChangePage:
Called when property pagingEnabled is YES and a page changes and the grid stops moving
-
– smGridView:didChangePagePartial:
Called when property pagingEnabled is YES and a new page is more visible than the former current page
-
– smGridView:didShowLoaderView:
Called when the loaderView is being added to be view hierarchy. Use this to init animations…
-
– smGridView:didHideLoaderView:
Called when loaderView is hidden. This gives you the change to stop animations…
-
– smGridView:startDraggingView:atIndex:
Called when a view starts being dragged
-
– smGridView:stopDraggingView:atIndex:
Called when a view stops being dragged
Instance Methods
smGridView:didChangePage:
Called when property pagingEnabled is YES and a page changes and the grid stops moving
- (void)smGridView:(SMGridView *)gridView didChangePage:(NSInteger)page
Declared In
SMGridView.h
smGridView:didChangePagePartial:
Called when property pagingEnabled is YES and a new page is more visible than the former current page
- (void)smGridView:(SMGridView *)gridView didChangePagePartial:(NSInteger)page
Declared In
SMGridView.h
smGridView:didFinishAddingIndexPath:
Called once a new view has been added to the view as a result to a call to [SMGridView addItemAtIndexPath:]
- (void)smGridView:(SMGridView *)gridView didFinishAddingIndexPath:(NSIndexPath *)indexPath
Declared In
SMGridView.h
smGridView:didFinishRemovingIndexPath:
Called once a view has been removed as a result to a call to [SMGridView removeItemAtIndexPath:]
- (void)smGridView:(SMGridView *)gridView didFinishRemovingIndexPath:(NSIndexPath *)indexPath
Declared In
SMGridView.h
smGridView:didHideLoaderView:
Called when loaderView is hidden. This gives you the change to stop animations…
- (void)smGridView:(SMGridView *)gridView didHideLoaderView:(UIView *)loaderView
Parameters
- gridView
The calling SMGridView
- loaderView
The view to be used as a loader. Typically a UIActivityIndicatorView but could be anything
Declared In
SMGridView.h
smGridView:didShowLoaderView:
Called when the loaderView is being added to be view hierarchy. Use this to init animations…
- (void)smGridView:(SMGridView *)gridView didShowLoaderView:(UIView *)loaderView
Parameters
- gridView
The calling SMGridView
- loaderView
The view to be used as a loader. Typically a UIActivityIndicatorView but could be anything
Declared In
SMGridView.h
smGridView:startDraggingView:atIndex:
Called when a view starts being dragged
- (void)smGridView:(SMGridView *)gridView startDraggingView:(UIView *)view atIndex:(int)index
Parameters
- gridView
The calling SMGridView
- view
The view being Dragged
- index
The index inside its section of this view
Declared In
SMGridView.h
smGridView:stopDraggingView:atIndex:
Called when a view stops being dragged
- (void)smGridView:(SMGridView *)gridView stopDraggingView:(UIView *)view atIndex:(int)index
Parameters
- gridView
The calling SMGridView
- view
The view being Dragged
- index
The index inside its section of this view
Declared In
SMGridView.h