问题
What is the syntax to set multiple arrow directions for a UIPopoverController in Swift?
Something like this:
popoverController.permittedArrowDirections = .Up | .Down
回答1:
I believe in swift the syntax you're looking for is:
popoverController.permittedArrowDirections = [.up, .down]
来源:https://stackoverflow.com/questions/34052471/set-multiple-arrow-directions-on-uipopovercontroller-in-swift