Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full Screen on Tap #76

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

KingOfBrian
Copy link

Added some code for this. It's a bit crufty, but I wanted some feedback.

Notes:

  • Not sure I manage the inFullScreen flag correctly in the cell, and I'm not sure that it's needed. I commented out layoutSubviews and things appear to be working fine, but I'm not sure if there is a purpose of the code that I am not executing
  • Moved some animation configuration from GMGridView into the cell
  • There was an ordering issue with transferring the full screen view superview that was calling the container view controller to get view[Did/Will]Disappear twice.
  • When you pull your full screen view larger than it is, it will animate back correctly instead of snap.

Not sure how to assign it to this issue:
#67

@KingOfBrian
Copy link
Author

Just realized that the inFullScreen is needed for rotation events. Will get that back in in a few.

… that transitions to full screen is complete, rather than when it starts. also added a willExit to the transform delegate
@gmoledina
Copy link
Owner

Thanks @KingOfBrian ! I'll check this out this weekend and let you know.

@KingOfBrian
Copy link
Author

FYI the closeTransform doesn't animate. I'm looking to fix that today-ish.

@flypigz
Copy link

flypigz commented May 17, 2012

I want this feature too !!!! The fullscreen mode require two hands to be triggered, one hand holding the iPhone, while another hand performs the pinch gesture.....

For iPad, that is OK, because we always use two hands to use the iPad.

@worldofjon
Copy link

Hi,

I added a method to go fullscreen after scrollToObjectAtIndex

  • (void)scrollToObjectAtIndex:(NSInteger)index atScrollPosition:(GMGridViewScrollPosition)scrollPosition animated:(BOOL)animated
    {
    ...........

    // Better performance animating ourselves instead of using animated:YES in scrollRectToVisible
    [UIView animateWithDuration:animated ? kDefaultAnimationDuration : 0
    delay:0
    options:kDefaultAnimationOptions
    animations:^{
    [self scrollRectToVisible:targetRect animated:NO];
    }
    completion:^(BOOL finished){
    [self performSelector:@selector(openTransformAtIndexNumber:) withObject:[NSNumber numberWithInt:index] afterDelay:1];
    }
    ];
    }

and

  • (void)openTransformAtIndexNumber:(NSNumber *)position
    {
    [self startOpenTransformAtIndex:[position integerValue]];
    [self completeOpenTransform];
    }

but it only occasionally works. Any Ideas why?

@ady-e-n
Copy link

ady-e-n commented Oct 19, 2013

@KingOfBrian how do i call the fullsize method on tap ?

i tried to call openTransformAtIndex:(NSInteger)position in

  • (void)GMGridView:(GMGridView *)gridView didTapOnItemAtIndex:(NSInteger)position
    {
    NSLog(@"Did tap at index %d", position);

}

can you please let me know how to i call the method implemented by you in order to go to fullscreen on tap ?

@KingOfBrian
Copy link
Author

I would think that works. I'm not using this code any more myself, so I'm not sure I'll be much help.

@worldofjon
Copy link

thanks Brian, why are you sending me this information?

On 21 October 2013 16:32, Brian King [email protected] wrote:

I would think that works. I'm not using this code any more myself, so I'm
not sure I'll be much help.


Reply to this email directly or view it on GitHubhttps://github.com//pull/76#issuecomment-26727608
.

@babulprabhakar
Copy link

Hey guys,
great Work with grid View
but i am getting stuck at some point in my code .
i want to implement expandable cell with you gmgridview cell but unable to implement transformation delegate
it never gets called even in your example

  • (CGSize)GMGridView:(GMGridView *)gridView sizeInFullSizeForCell:(GMGridViewCell *)cell atIndex:(NSInteger)index inInterfaceOrientation:(UIInterfaceOrientation)orientation
    {
    CGSize viewSize = self.view.bounds.size;
    return CGSizeMake(viewSize.width - 50, viewSize.height - 50);
    }

please help ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants