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

Detect fullscreen #68

Open
lsn-sokna opened this issue Jan 21, 2015 · 3 comments
Open

Detect fullscreen #68

lsn-sokna opened this issue Jan 21, 2015 · 3 comments

Comments

@lsn-sokna
Copy link

Is it possible to detect when user tap on fullscreen button to display player it fullscreen?

@Kowaio
Copy link

Kowaio commented Jan 21, 2015

Hi @lsn-sokna

You can add those notifications for iOS 8 in your viewDidLoad:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enteredFullScreen:) name:UIWindowDidBecomeVisibleNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(closedFullScreen:) name:UIWindowDidBecomeHiddenNotification object:nil];

Best,

K

@lsn-sokna
Copy link
Author

@Kowaio Thank bro! You saved my day!

@light-bo
Copy link

light-bo commented Mar 19, 2017

@Kowaio what about iOS7? How can i detect it in iOS7? 😄

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

3 participants