Skip to content

Solve issue when tapping on a video#53

Open
chasseurmic wants to merge 1 commit intomariohahn:masterfrom
chasseurmic:master
Open

Solve issue when tapping on a video#53
chasseurmic wants to merge 1 commit intomariohahn:masterfrom
chasseurmic:master

Conversation

@chasseurmic
Copy link
Copy Markdown

The following method -(void)handelImageTap:(UIGestureRecognizer *)gestureRecognizer in MHGalleryImageViewerViewController was crashing my app when tapping on a video presented inside the MHGalleryController. The problem was due to the selector locationInView: called on an instance of UIButton.

The handelImageTap method should actually accept only instances of UIGestureRecognizer as its parameters, but in changeToPlayable the self.moviewPlayerButtonBehinde is being passed as a parameter, thus crashing the app.

I've solved the issue by adding a gesture recognizer to self.moviewPlayerButtonBehinde and by adding a defensive check inside handelImageTap.

The following method `-(void)handelImageTap:(UIGestureRecognizer *)gestureRecognizer` in MHGalleryImageViewerViewController was crashing my app when tapping on a video presented inside the `MHGalleryController`. The problem was due to the selector `locationInView:` called on an instance of UIButton. 

The `handelImageTap` method should actually accept only instances of UIGestureRecognizer as its parameters, but in `changeToPlayable` the `self.moviewPlayerButtonBehinde` is being passed as a parameter, thus crashing the app. 

I've solved the issue by adding a gesture recognizer to `self.moviewPlayerButtonBehinde` and by adding a defensive check inside `handelImageTap`.
@syrakozz
Copy link
Copy Markdown

syrakozz commented Jan 9, 2015

+1

@mythodeia
Copy link
Copy Markdown

@syrakozz i think this is resolved in the latest build
@chasseurmic can you check if the latest build works for you?

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.

3 participants