Permalink
Browse files

Update readme + fix bug for tap on empty space

  • Loading branch information...
gmoledina committed Apr 17, 2012
1 parent 95f421a commit aff0fac4bb320f58c86e9a61f4148b59f7b424b5
Showing with 9 additions and 2 deletions.
  1. +5 −0 Example/Demo1ViewController.m
  2. +1 −2 GMGridView/GMGridView.m
  3. +3 −0 README.md
@@ -284,6 +284,11 @@ - (void)GMGridView:(GMGridView *)gridView didTapOnItemAtIndex:(NSInteger)positio
NSLog(@"Did tap at index %d", position);
}
+- (void)GMGridViewDidTapOnEmptySpace:(GMGridView *)gridView
+{
+ NSLog(@"Tap on empty space");
+}
+
- (void)GMGridView:(GMGridView *)gridView processDeleteActionForItemAtIndex:(NSInteger)index
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Confirm" message:@"Are you sure you want to delete this item?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Delete", nil];
View
@@ -481,8 +481,7 @@ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
if (gestureRecognizer == _tapGesture)
{
- CGPoint locationTouch = [_tapGesture locationInView:self];
- valid = !isScrolling && !self.isEditing && [self.layoutStrategy itemPositionFromLocation:locationTouch] != GMGV_INVALID_POSITION;
+ valid = !isScrolling && !self.isEditing && ![_sortingLongPressGesture hasRecognizedValidGesture];
}
else if (gestureRecognizer == _sortingLongPressGesture)
{
View
@@ -1,4 +1,7 @@
#[GM-GRID-VIEW](http://www.gmoledina.ca/projects/gmgridview/)
+<a target="_blank" href="http://www.gmoledina.ca/projects/gmgridview/">
+<img style="position: relative; width: 768px; margin: 0;" src="http://www.gmoledina.ca/wp-content/uploads/2012/04/GMGridView_iPad_promo1.png" alt="GMGridView"/>
+</a>
"**Definitely looks like one to watch**" [ManiacDev.com]

0 comments on commit aff0fac

Please sign in to comment.