Skip to content
Browse files

Merge pull request #6 from aufflick/DTGridView

  • Loading branch information...
2 parents 1174116 + 652e92a commit b84d339706a1f00118f5adbb5e3a2d3c036681b7 @danielctull committed Jan 22, 2011
Showing with 9 additions and 4 deletions.
  1. +2 −2 DTGridView Project/DTGridView.xcodeproj/project.pbxproj
  2. +7 −2 DTGridView.m
View
4 DTGridView Project/DTGridView.xcodeproj/project.pbxproj
@@ -136,8 +136,8 @@
24388EAB12B8D4F800848476 /* DTSnapGridView */,
);
name = DTGridView;
- path = /Users/danielctull/Dropbox/Programs/Cocoa/Frameworks/DTGridView;
- sourceTree = "<absolute>";
+ path = ..;
+ sourceTree = SOURCE_ROOT;
};
24388EA812B8D4F800848476 /* DTInfiniteGridView */ = {
isa = PBXGroup;
View
9 DTGridView.m
@@ -427,9 +427,14 @@ - (void)loadData {
NSSet *gridCellsSet = [NSSet setWithArray:self.gridCells];
NSArray *subviewsCopy = [self.subviews copy];
- for (DTGridViewCell *cell in subviewsCopy) {
- if (![gridCellsSet member:cell])
+ for (UIView *cell in subviewsCopy) {
+ if (
+ [cell isKindOfClass:[DTGridViewCell class]] &&
+ ![gridCellsSet member:cell]
+ )
+ {
[cell removeFromSuperview];
+ }
}
[subviewsCopy release];

0 comments on commit b84d339

Please sign in to comment.
Something went wrong with that request. Please try again.