youtube-ios-player-helper icon indicating copy to clipboard operation
youtube-ios-player-helper copied to clipboard

done button delegate

Open sallamy opened this issue 9 years ago • 4 comments

i want to dismmiss my ViewController when Done Button Tapped but there is no action or delegate

sallamy avatar Oct 02 '15 15:10 sallamy

[[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(handleWhenPlayingInFullScreen:)
                                                 name:UIWindowDidBecomeVisibleNotification
                                               object:self.view.window];

[[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(handleWhenDoneButtonClick:)
                                                 name:UIWindowDidBecomeHiddenNotification
                                               object:self.view.window];

RF : Detect when a webview video becomes fullscreen on ios8

MiaShopgal avatar Oct 04 '15 00:10 MiaShopgal

+1

the-civilian avatar Oct 25 '15 17:10 the-civilian

In swift 3 you can do this, add this code in ViewDidLoad(:) for ViewController class or if you have created custome UIView then add this in the init method. NotificationCenter.default.addObserver(self, selector: #selector(self.doneButtonPressed), name: NSNotification.Name.UIWindowDidBecomeHidden, object: self.view.window)

anirudhamahale avatar Jul 19 '17 04:07 anirudhamahale

How to distinguish close button(X) and minimize button, both trigger UIWindowDidBecomeHidden notification?

tanhuynht avatar Oct 27 '22 08:10 tanhuynht