From c08e7d22946c0c3a99f7298be06d18e95a45eac9 Mon Sep 17 00:00:00 2001 From: "emil.wojtaszek" Date: Mon, 9 Apr 2012 00:49:21 +0200 Subject: [PATCH] dodikk - bug fix in name of the method --- .../CLCascadeNavigationController.m | 2 +- src/Cascade/CLCascadeNavigationController/CLCascadeView.m | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Cascade/CLCascadeNavigationController/CLCascadeNavigationController.m b/src/Cascade/CLCascadeNavigationController/CLCascadeNavigationController.m index 87b81fa..893eba5 100644 --- a/src/Cascade/CLCascadeNavigationController/CLCascadeNavigationController.m +++ b/src/Cascade/CLCascadeNavigationController/CLCascadeNavigationController.m @@ -212,7 +212,7 @@ - (void) cascadeView:(CLCascadeView*)cascadeView pageDidDisappearAtIndex:(NSInte if (index > [_viewControllers count] - 1) return; UIViewController* controller = [_viewControllers objectAtIndex: index]; - if ([controller respondsToSelector:@selector(pageDidAppear)]) { + if ([controller respondsToSelector:@selector(pageDidDisappear)]) { [controller pageDidDisappear]; } diff --git a/src/Cascade/CLCascadeNavigationController/CLCascadeView.m b/src/Cascade/CLCascadeNavigationController/CLCascadeView.m index 535d24c..0a79283 100644 --- a/src/Cascade/CLCascadeNavigationController/CLCascadeView.m +++ b/src/Cascade/CLCascadeNavigationController/CLCascadeView.m @@ -39,7 +39,7 @@ - (CGPoint) calculateOriginOfPageAtIndex:(NSInteger)index; - (void) setProperContentSize; - (void) setProperEdgeInset:(BOOL)animated; - (void) setProperEdgeInset:(BOOL)animated forInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation; -- (void) setProperSizesForLodedPages:(UIInterfaceOrientation)interfaceOrientation; +- (void) setProperSizesForLoadedPages:(UIInterfaceOrientation)interfaceOrientation; - (void) unloadPage:(UIView*)page remove:(BOOL)remove; - (void) loadBoundaryPagesIfNeeded; @@ -352,7 +352,7 @@ - (void)layoutSubviews { UIInterfaceOrientation interfaceOrientation = [[UIApplication sharedApplication] statusBarOrientation]; // recalculate pages height and width - [self setProperSizesForLodedPages:interfaceOrientation]; + [self setProperSizesForLoadedPages:interfaceOrientation]; [_pages enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { @@ -371,7 +371,7 @@ - (void) updateContentLayoutToInterfaceOrientation:(UIInterfaceOrientation)inter // set proper edge inset [self setProperEdgeInset:YES forInterfaceOrientation:interfaceOrientation]; // recalculate pages height and width - [self setProperSizesForLodedPages: interfaceOrientation]; + [self setProperSizesForLoadedPages: interfaceOrientation]; } @@ -678,7 +678,7 @@ - (CGSize) calculatePageSize:(UIView*)view { /////////////////////////////////////////////////////////////////////////////////////////////////// -- (void) setProperSizesForLodedPages:(UIInterfaceOrientation)interfaceOrientation { +- (void) setProperSizesForLoadedPages:(UIInterfaceOrientation)interfaceOrientation { [_pages enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { if (obj != [NSNull null]) { UIView* view = (UIView*)obj;