Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Deletes Specimen stuff and finish fullscreen UI for all elements

  • Loading branch information...
commit dbf78ea4d0dd1545769e90f10f533d80967e91f6 1 parent 64659c0
@pieteromvlee pieteromvlee authored
Showing with 9 additions and 1 deletion.
  1. +2 −0  BCCollectionView.h
  2. +7 −1 BCCollectionView.m
View
2  BCCollectionView.h
@@ -45,6 +45,8 @@
@property (nonatomic, copy) NSArray *contentArray;
@property (nonatomic, copy) NSString *zoomValueObserverKey, *accumulatedKeyStrokes;
+@property (readonly) NSArray *visibleViewControllerArray;
+
//designated way to load BCCollectionView
- (void)reloadDataWithItems:(NSArray *)newContent emptyCaches:(BOOL)shouldEmptyCaches;
View
8 BCCollectionView.m
@@ -7,6 +7,7 @@
@implementation BCCollectionView
@synthesize delegate, contentArray, backgroundColor, originalSelectionIndexes, zoomValueObserverKey, accumulatedKeyStrokes, numberOfPreRenderedRows;
+@dynamic visibleViewControllerArray;
- (id)initWithCoder:(NSCoder *)aDecoder
{
@@ -18,7 +19,7 @@ - (id)initWithCoder:(NSCoder *)aDecoder
selectionIndexes = [[NSMutableIndexSet alloc] init];
dragHoverIndex = NSNotFound;
accumulatedKeyStrokes = [[NSString alloc] init];
- numberOfPreRenderedRows = 1;
+ numberOfPreRenderedRows = 3;
layoutManager = [[BCCollectionViewLayoutManager alloc] initWithCollectionView:self];
[self addObserver:self forKeyPath:@"backgroundColor" options:0 context:NULL];
@@ -235,6 +236,11 @@ - (NSIndexSet *)indexesOfViewControllers
return set;
}
+- (NSArray *)visibleViewControllerArray
+{
+ return [visibleViewControllers allValues];
+}
+
- (NSIndexSet *)indexesOfInvisibleViewControllers
{
NSRange visibleRange = [self rangeOfVisibleItemsWithOverflow];
Please sign in to comment.
Something went wrong with that request. Please try again.