我希望添加一個回應 AVPlayerViewController 事件的委托方法。
該事件是關于運輸欄的可見性變化。
但我只能在 Swift 中找到相關檔案...
optional func playerViewController(_ playerViewController: AVPlayerViewController,
willTransitionToVisibilityOfTransportBar visible: Bool, with coordinator: AVPlayerViewControllerAnimationCoordinator)
任何了解這一點的人都可以幫助在 Obj-C 中給出相應的方法簽名嗎?
uj5u.com熱心網友回復:
您可以通過從 Apple 開發人員網站上的語言下拉串列中選擇來查看 Objective-C 的檔案:https ://developer.apple.com/documentation/avkit/avplayerviewcontrollerdelegate/2876484-playerviewcontroller?language=objc
對于該特定方法,簽名是
- (void)playerViewController:(AVPlayerViewController *)playerViewController
willTransitionToVisibilityOfTransportBar:(BOOL)visible
withAnimationCoordinator:(id<AVPlayerViewControllerAnimationCoordinator>)coordinator;
另一種方法是命令單擊 Xcode 中的符號以跳轉到符號的定義,然后選擇 Navigate -> Jump to Original Source/Generated Interface
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/470155.html
