Skip to content

Commit

Permalink
Daily Calendar: Header is working fine when the device changes its or…
Browse files Browse the repository at this point in the history
…ientation
  • Loading branch information
fggeraissate committed May 29, 2014
1 parent 916cc92 commit 0405100
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -223,18 +223,11 @@ - (IBAction)buttonTodayAction:(id)sender {

#pragma mark - Interface Rotation

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {

// [viewCalendarDay enableScrolling:NO];
}

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {

[viewCalendarYear invalidateLayout];
[viewCalendarMonth invalidateLayout];
[viewCalendarDay invalidateLayout];

// [viewCalendarDay enableScrolling:YES];
}

#pragma mark - FFButtonAddEventWithPopover Protocol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@
@property (nonatomic, strong) NSMutableDictionary *dictEvents;

- (void)invalidateLayout;
//- (void)enableScrolling:(BOOL)enable;

@end
7 changes: 1 addition & 6 deletions FFCalendar/FFCalendars/FFDayCalendarView/FFDayCalendarView.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,9 @@ - (void)setDictEvents:(NSMutableDictionary *)_dictEvents {
- (void)invalidateLayout {
[collectionViewHeaderDay.collectionViewLayout invalidateLayout];
[dayContainerScroll.collectionViewDay.collectionViewLayout invalidateLayout];
[self updateHeader];
}

//- (void)enableScrolling:(BOOL)enable {
// collectionViewHeaderDay.scrollEnabled = enable;
// dayContainerScroll.scrollEnabled = enable;
// dayContainerScroll.collectionViewDay.scrollEnabled = enable;
//}

#pragma mark - FFDateManager Notification

- (void)dateChanged:(NSNotification *)not {
Expand Down

0 comments on commit 0405100

Please sign in to comment.