tvos

Invalid Image Asset -Top Shelf Image - must be opaque

我是研究僧i 提交于 2019-12-01 02:44:54
I am getting ERROR ITMS-90497 , Invalid Image Asset -Top Shelf Image - must be opaque , when using this image: I'm just testing with this image to get it working and trying to submit a tvOS application to TestFlight. The PNG image you're using contains Alpha Channels. Open the image with Preview and go to File>Export>Uncheck Alpha>Save. This will save the image without Alpha Channels. 来源: https://stackoverflow.com/questions/32834660/invalid-image-asset-top-shelf-image-must-be-opaque

Archive upload failed with error: ITMS-90470 Missing TVTopShelfImage.TVTopShelfPrimaryImageWide key

旧巷老猫 提交于 2019-11-30 19:22:22
Do you know why this is happening and most important how to fix it? Adding the key with what value? Starting in tvOS 10 you must include a wide top shelf image, Top Shelf Image Wide , with a size of 2320px by 720px @1x . tvOS Human Interface Guidelines: Icons and Images . If Top Shelf Image Wide is not already in your Assets.xcassets you can create one manually, or with the + Add a Group or Image Set button. For example: The crop area is still 1920px x 720px @1x when the top shelf image is displayed on the Apple TV. So, if you're using any text or images that you don't want cut off make sure

How to detect Apple TV Siri Remote button presses?

流过昼夜 提交于 2019-11-30 14:24:18
According to the Apple TV interface guideline , when it comes to games you're supposed to use the menu button as a pause button when you're not at the main menu of the game (in which case it should return to the Apple TV OS menu). However, I can't find anywhere how you're supposed to detect the hard button input from your remote (as opposed to soft buttons on screen). I did find this short programming guide to using controllers that almost seems to imply that you're supposed to use the remote as a controller in this case, but I can't help but think there's a simpler way. ex. -(void

UITableViewWrapperView has a leading and trailing margin with super view on tvOS

别说谁变了你拦得住时间么 提交于 2019-11-30 08:51:45
问题 I'm creating a tableview on tvOS. The UITableViewWrapperView is subview of UITableView and there is a leading and trailing padding between them. How can I remove these paddings? Thanks? 回答1: tvOS table views have a lot of weird quirks. I haven't been able to find a clean solution to this for awhile. For now I've been adding negative constraints to the table view cells. 来源: https://stackoverflow.com/questions/51927237/uitableviewwrapperview-has-a-leading-and-trailing-margin-with-super-view-on

TVML vs Custom App for Apple TVOS

醉酒当歌 提交于 2019-11-30 06:53:11
Are there any advantage of using TVML over custom App (media based App not a game) for Apple TVOS? From what I read from Apple's documentation I could not figure out any such advantage (though it mostly talks about TVML/TVJs). For iOS (Swift, Objective C) developers, using custom seems like easier, faster and with more possibilities. I think whatever templates are provided by Apple can be build using UIKit because internally it is UIKit. Right? [Update] Let me rephrase my original question as the answers so far are not given any points in favour of custom App. I agree that @shirefriendship has

How do I play a video on tvOS for Apple TV?

99封情书 提交于 2019-11-29 22:23:06
I started a blank tvOS project and created the following code: - (void)viewDidLoad { [super viewDidLoad]; AVPlayer *avPlayer = [AVPlayer playerWithURL:[NSURL URLWithString:@"http://www.myurl.com/myvideo.mp4"]]; AVPlayerLayer *avPlayerLayer = [AVPlayerLayer playerLayerWithPlayer:avPlayer]; avPlayerLayer.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height); [self.view.layer addSublayer:avPlayerLayer]; [avPlayer play]; } Nothing happens in the simulator though once the app loads. No video, nothing, just a blank translucent screen in my Apple TV simulator. What's the

Use iPhone as a game controller in a tvOS app?

放肆的年华 提交于 2019-11-29 21:34:11
During the Apple TV announcement, the developers of Crossy Road demonstrated using an iPhone as a 2nd controller for an Apple tv game: http://www.macrumors.com/2015/09/09/cooperative-play-for-crossy-road/ My first thought was to implement this using the Multipeer Connectivity Framework . However, it's not supported on tvOS. Is there a good way to connect an iPhone to an Apple TV without Multipeer Connectivity? Update: It doesn't appear that I can use GameKit because GKPeerPickerController has been removed from GameKit on tvOS. vivianaranha You can try my library. I built this for my apps maybe

How to detect Apple TV Siri Remote button presses?

有些话、适合烂在心里 提交于 2019-11-29 19:57:53
问题 According to the Apple TV interface guideline, when it comes to games you're supposed to use the menu button as a pause button when you're not at the main menu of the game (in which case it should return to the Apple TV OS menu). However, I can't find anywhere how you're supposed to detect the hard button input from your remote (as opposed to soft buttons on screen). I did find this short programming guide to using controllers that almost seems to imply that you're supposed to use the remote

How can I create a button with a background color for tvOS while still showing focus?

本秂侑毒 提交于 2019-11-29 18:17:42
问题 All I want to do is add a background color to a button for all states. But I want to maintain the automatic focus shadow that you get "for free" when using a system button in the tvOS storyboard. So far I haven't been able to find a combination that allows this. Alternatively, I would also be interested in a way to programmatically add the shadow when the button is focused, but short of subclassing the button (which I haven't yet tried), I don't know how to do that either. 回答1: Override

UITableViewWrapperView has a leading and trailing margin with super view on tvOS

断了今生、忘了曾经 提交于 2019-11-29 08:41:20
I'm creating a tableview on tvOS. The UITableViewWrapperView is subview of UITableView and there is a leading and trailing padding between them. How can I remove these paddings? Thanks? tvOS table views have a lot of weird quirks. I haven't been able to find a clean solution to this for awhile. For now I've been adding negative constraints to the table view cells. 来源: https://stackoverflow.com/questions/51927237/uitableviewwrapperview-has-a-leading-and-trailing-margin-with-super-view-on-tvos