siri-remote

Apple TV App not exiting to the home screen from initial view controller when menu button pressed on remote

北城以北 提交于 2019-12-23 07:27:26
问题 I've just had an Apple TV app rejected because of 'In addition, the Menu button on the Siri Remote does not behave as expected in your app. Specifically, when the user launches the app and taps the Menu button on the Siri Remote, the app does not exit to the Apple TV Home screen.' I'm looking this up and from what I can tell this should be the automatic behaviour of pressing the menu button when on the initial view controller. However I have a navigation controller with a root view controller

Siri Remote's Menu Button not exiting application when UIButton is focused

北慕城南 提交于 2019-12-08 01:22:26
问题 I'm overriding pressesBegan to receive Select presses. The Siri Remote's Menu Button does not exit my application when the focus is on a UIButton . If no UI element is focused the Menu Button works as expected. How do I receive Menu Button presses when the focus is on a UIButton ? override func pressesBegan(presses: Set<UIPress>, withEvent event: UIPressesEvent?) { for item in presses { if item.type == .Select { print("Click") } if item.type == .Menu { print("Menu Button") super.pressesBegan

Allow Menu button to exit tvOS app when pressed on presented modal view controller

戏子无情 提交于 2019-12-01 12:14:36
问题 I have a tvOS app, with a UITabBarController as the main entry point for the main storyboard. If the user is not logged in, the UITabBarController presents a LoginViewController modally. When the user presses the Menu button on the Siri remote, the system automatically dismiss the LoginViewController and shows the UITabBarController . I want the app to instead exit to the tvOS headboard. Expect the solution to involve either a UITapGestureRecognizer to override the Menu button action, or