mobileplayer-ios
mobileplayer-ios copied to clipboard
"on Exit", fire func...
Is there anyway to fire a func when the (X) - close button is pressed? i would like to fire a seugue then.
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.
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.