tvos9.1

How to change focus programmatically in tvOS

谁说胖子不能爱 提交于 2020-01-05 09:09:34
问题 I am developing a tvOS app in swift. I am using UITabBarController in the app. My requirement is to hide the tabbar automatic after 10 seconds and focus can move to AVPlayerViewController inside the tabbar item. I tried to override preferredFocusedView , but focus cannot move to AVPlayerViewController . func updateFocus() { self.playerController.view.hidden = false self.playerController.view.alpha = 1.0 self.playerController.view.userInteractionEnabled = true self.playerController.view.layer

How to change focus programmatically in tvOS

不打扰是莪最后的温柔 提交于 2020-01-05 09:08:54
问题 I am developing a tvOS app in swift. I am using UITabBarController in the app. My requirement is to hide the tabbar automatic after 10 seconds and focus can move to AVPlayerViewController inside the tabbar item. I tried to override preferredFocusedView , but focus cannot move to AVPlayerViewController . func updateFocus() { self.playerController.view.hidden = false self.playerController.view.alpha = 1.0 self.playerController.view.userInteractionEnabled = true self.playerController.view.layer

tvOS UITextField blank after editing

跟風遠走 提交于 2019-12-20 02:27:33
问题 Editing UITextField in tvOS shows a new view where the user can enter in text, and when text entry is done, the user is returned to the previous view. However, I have found that when I return from the text editor, the text I edit does not show up in my text fields. What's going on? tvOS version 9.1 回答1: The reason why it isn't working is because the UITextField is using a non-default background color. Apparently in tvOS, the background color is rendered to the layer after the text has been

How to change tab bar item text colour on focus in TVOS

允我心安 提交于 2019-12-13 00:53:20
问题 I have four item in tab bar. 1> Watch. (Black Colour) 2> On Demand. (Black Colour) 3> Search. (Black Colour) 4> Settings. (My Colour) How can i change the colour of item text in tab bar to match with its icon colour. (Right now Performance is selected in the tab bar) enter image description here How can I change the color of "1,2,3" text in tabbar to match with its icon color. (Right now Performance is selected in the tab bar) I tried to set TitleTextAttributes. UITabBarItem.appearance()

UITabBar displays UITabBarItem image ignoring rendering mode AlwaysOriginal

你。 提交于 2019-12-05 02:36:55
问题 With the release of tvOS 9.1 and Xcode 7.2, my UITabBarItem images are being displayed incorrectly. In my view controllers, I set the tabBarItem.image and tabBarItem.selectedImage with images using UIImageRenderingMode.AlwaysOriginal . required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) self.tabBarItem.image = UIImage(named: "myTabImage")?.imageWithRenderingMode(.AlwaysOriginal) self.tabBarItem.selectedImage = UIImage(named: "myTabImageSelected")?.imageWithRenderingMode(