Created
October 13, 2012 16:21
-
-
Save nalitzis/3885208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(NSArray *)findAfterViewsAfter:(ContentView *)contentView{ | |
int viewIndex = contentView.tag; | |
NSMutableArray *afterViews = [NSMutableArray array]; | |
BOOL isBefore = YES; | |
for(int i=0; i < _views.count; i++){ | |
ContentView *currentView = [_views objectAtIndex:i]; | |
if(currentView.tag == viewIndex){ | |
isBefore = NO; | |
continue; | |
} | |
if(!isBefore) | |
[afterViews addObject:currentView]; | |
} | |
return afterViews; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment