Permalink
Browse files

Closes # 200 public method animateToNextOrPreviousMonth added for Cal…

…endarMonthView
  • Loading branch information...
1 parent 4095204 commit 4592294366f84b5ccd0459de6bc669f90a5c85d1 @devinross committed Mar 20, 2013
View
4 demo/Classes/CoverflowViewController.m
@@ -200,5 +200,9 @@ - (TKCoverflowCoverView *) coverflowView:(TKCoverflowView *)coverflowView coverF
}
+- (void) coverflowView:(TKCoverflowView*)coverflowView coverAtIndexWasBroughtToFront:(NSInteger)index{
+ NSLog(@"Cover at index %d was brought to front",index);
+}
+
@end
View
5 src/TapkuLibrary/TKCalendarMonthView.h
@@ -89,6 +89,11 @@
/** Reloads the current month grid. */
- (void) reloadData;
+/** Animates the calendar to the next or previous month.
+ @param isNext YES for next month, NO for previous month.
+ */
+- (void) animateToNextOrPreviousMonth:(BOOL)next;
+
@end
#pragma mark - TKCalendarMonthViewDelegate
View
5 src/TapkuLibrary/TKCalendarMonthView.m
@@ -807,6 +807,10 @@ - (void) changeMonth:(UIButton *)sender{
}
+- (void) animateToNextOrPreviousMonth:(BOOL)next{
+ [self changeMonth:next ? self.rightArrow : self.leftArrow];
+}
+
#pragma mark Moving the tiles up and down
- (void) _tileSelectedWithData:(NSArray*)ar{
@@ -874,7 +878,6 @@ - (void) changeMonthAnimation:(UIView*)sender{
[newTile setTarget:self action:@selector(_tileSelectedWithData:)];
-
NSInteger overlap = 0;
if(isNext)

0 comments on commit 4592294

Please sign in to comment.