Permalink
Browse files

Added warning for scrollView property and some comments

  • Loading branch information...
1 parent 487b4af commit 50aaf98c1caabe3f4810a328a388f4528be8bbb2 @gmoledina committed Dec 15, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 GMGridView/API/GMGridView.h
@@ -75,14 +75,16 @@ typedef enum
@property (nonatomic) BOOL showsVerticalScrollIndicator; // Default is YES
@property (nonatomic) BOOL showsHorizontalScrollIndicator; // Default is YES
-@property (nonatomic, strong) UIScrollView *scrollView;
+@property (nonatomic, readonly) UIScrollView *scrollView; // Messing with the scrollView can lead to unexpected behavior. Avoid changing any properties
+ // or changing its delegate. You have been warned.
+
// Reusable cells
-- (GMGridViewCell *)dequeueReusableCell;
+- (GMGridViewCell *)dequeueReusableCell; // Should be called in GMGridView:cellForItemAtIndex: to reuse a cell
// Cells
-- (GMGridViewCell *)cellForItemAtIndex:(NSInteger)position;
+- (GMGridViewCell *)cellForItemAtIndex:(NSInteger)position; // Might return nil if cell not loaded for the specific index
// Actions
- (void)reloadData;

0 comments on commit 50aaf98

Please sign in to comment.