mobileplayer-ios icon indicating copy to clipboard operation
mobileplayer-ios copied to clipboard

"on Exit", fire func...

Open fboulegue opened this issue 8 years ago • 2 comments

Is there anyway to fire a func when the (X) - close button is pressed? i would like to fire a seugue then.

fboulegue avatar Feb 29 '16 09:02 fboulegue

You can add an event handler to it just like you would add to any button. You can get the close button view by using playerVC.viewForElementWithIdentifier("close") as? UIButton.

Edit Take a look at the documentation for more information. You can also check these parts in the source code: ElementConfig, MobilePlayerViewController.

isair avatar Feb 29 '16 22:02 isair

Did work, but i could not performe a segue, as i set for "close"

performSegueWithIdentifier("mySegue", sender: self),

for now i did used a work around with NSUserDefaults and viewDidAppear but would be great to know how to performe a segue on the click if you could help.

fboulegue avatar Mar 02 '16 10:03 fboulegue