Skip to content

Commit

Permalink
dodikk - bug fix in name of the method
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwojtaszek committed Apr 8, 2012
1 parent f85f446 commit c08e7d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -212,7 +212,7 @@ - (void) cascadeView:(CLCascadeView*)cascadeView pageDidDisappearAtIndex:(NSInte
if (index > [_viewControllers count] - 1) return;

UIViewController<CLViewControllerDelegate>* controller = [_viewControllers objectAtIndex: index];
if ([controller respondsToSelector:@selector(pageDidAppear)]) {
if ([controller respondsToSelector:@selector(pageDidDisappear)]) {
[controller pageDidDisappear];
}

Expand Down
8 changes: 4 additions & 4 deletions src/Cascade/CLCascadeNavigationController/CLCascadeView.m
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {

Expand All @@ -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];
}


Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c08e7d2

Please sign in to comment.