apple-tv

Unable to Install the Charles Proxy profile on Apple TV via Apple Configurator 2

天涯浪子 提交于 2020-04-13 14:12:40
问题 I have been trying this official guide to setup Charles Proxy on my Apple TV (4th Gen, running tvOS 13.3). After creating the profile on Apple Configurator 2, I was performing the steps for setting up the profile on Apple TV below: After pressing "Done" above, this screen shows up indicating that no profile has been installed: Can you guide me on how I can successfully install the Charles Proxy profile on my Apple TV running tvOS 13.3? 回答1: This guide worked for me from https://forums

Unable to Install the Charles Proxy profile on Apple TV via Apple Configurator 2

爷,独闯天下 提交于 2020-04-13 14:11:11
问题 I have been trying this official guide to setup Charles Proxy on my Apple TV (4th Gen, running tvOS 13.3). After creating the profile on Apple Configurator 2, I was performing the steps for setting up the profile on Apple TV below: After pressing "Done" above, this screen shows up indicating that no profile has been installed: Can you guide me on how I can successfully install the Charles Proxy profile on my Apple TV running tvOS 13.3? 回答1: This guide worked for me from https://forums

Manually setting focus to a <lockup> element in TVJS

為{幸葍}努か 提交于 2020-01-25 12:25:27
问题 I can't find any method in the Documentation to manually set the focus to an element. It is supposed to support the DOM Element class, but when i do var elem = ele.ownerDocument.getElementById("start"); elem.focus(); it does nothing. elem is correctly set, but it doesn't recognize the focus() method. 回答1: Apple's TVJS Framework doesn't provide any method in his classes to manually focus an element. Neither in the standard Document Object Module classes it incorporates have any kind of method

TVML - how to modify formTemplate to show “pin entry”

别说谁变了你拦得住时间么 提交于 2020-01-17 13:57:07
问题 TVML's formTemplate can easily be adapted to only allow numeric input: <formTemplate> <textField keyboardType="numberPad">0000</textField> <footer> <button> <text>${TEXT("Submit")}</text> </button> </footer> </formTemplate> This gives a page like... I would like to reduce it even further to only display a "pin entry" screen as shown here: Is this possible with TVML, without hosting an own UIControl? I have nowhere found any mentioning of changing styles like this. Any idea how to achieve this

How to display GameCenter leaderboard on tvOS?

梦想与她 提交于 2020-01-14 14:27:08
问题 I think I followed all the required steps to support leaderboards in my game (and they work just fine on iOS), however on tvOS it is not possible to configure the GKGameCenterViewController to show a specific leaderboard, the LeaderboardIdentifier property is simply missing (just like the ViewState ): var leaderboardController = new GKGameCenterViewController (); // Unavailable on tvOS /* leaderboardController.ViewState = GKGameCenterViewControllerState.Default; leaderboardController

How to get motion events with the Apple TV remote

﹥>﹥吖頭↗ 提交于 2020-01-12 05:26:21
问题 Has anybody figured out how to get motion events working with the new apple TV remote? Thanks. I've tried calling override func motionBegan(motion: UIEventSubtype, withEvent event: UIEvent?) { super.motionBegan(motion, withEvent: event) print("motion!") } override func motionEnded(motion: UIEventSubtype, withEvent event: UIEvent?) { super.motionEnded(motion, withEvent: event) print("motion ended!") } With and without calling super gives me nothing. 回答1: A great swift example can be found here

How to get motion events with the Apple TV remote

杀马特。学长 韩版系。学妹 提交于 2020-01-12 05:26:10
问题 Has anybody figured out how to get motion events working with the new apple TV remote? Thanks. I've tried calling override func motionBegan(motion: UIEventSubtype, withEvent event: UIEvent?) { super.motionBegan(motion, withEvent: event) print("motion!") } override func motionEnded(motion: UIEventSubtype, withEvent event: UIEvent?) { super.motionEnded(motion, withEvent: event) print("motion ended!") } With and without calling super gives me nothing. 回答1: A great swift example can be found here