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

Issue with Youtube videos #22

Open
ipodishima opened this issue Nov 15, 2011 · 0 comments
Open

Issue with Youtube videos #22

ipodishima opened this issue Nov 15, 2011 · 0 comments

Comments

@ipodishima
Copy link
Contributor

If you play a youtube video in fullscreen, you won't be able to touch the movie ...
So, after inspecting the hitTest in CLSplitCascadeView, I saw some views :
MPTransportButton, MPDetailSlider, UINavigationButton, MPVideoView

So, place the code at the begining of hitTest :
(maybe the substring to index MP is not ideal, but works for my project).

UIView *normalBehaviourView = [super hitTest:point withEvent:event];

if([normalBehaviourView isKindOfClass:NSClassFromString(@"UINavigationButton")] 
   || [[NSStringFromClass([normalBehaviourView class]) substringToIndex:2] isEqualToString:@"MP"])
{
    return normalBehaviourView;
}

Or

if( [normalBehaviourView isKindOfClass:NSClassFromString(@"UINavigationButton")]
|| [normalBehaviourView isKindOfClass:NSClassFromString(@"MPTransportButton")]
|| [normalBehaviourView isKindOfClass:NSClassFromString(@"MPDetailSlider")]
|| [normalBehaviourView isKindOfClass:NSClassFromString(@"MPVideoView")])
{
return normalBehaviourView;
}

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

No branches or pull requests

1 participant