Skip to content

Instantly share code, notes, and snippets.

@akio0911
Created May 11, 2009 04:10
Show Gist options
  • Save akio0911/109861 to your computer and use it in GitHub Desktop.
Save akio0911/109861 to your computer and use it in GitHub Desktop.
NSMutableIndexSet* targetIndexes = [NSMutableIndexSet indexSet];
NSUInteger index = 0;
for(HogeView* aHogeView in aHogeViews) {
CGPoint center = aHogeView.center;
if(center.x < MIN){
[targetIndexes addIndex:index];
[aHogeView removeFromSuperview];
}
index++;
}
[aHogeViews removeObjectsAtIndexes:targetIndexes];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment