tvos

Binary operator '==' cannot be applied to operands of type '[MKAnnotation]' and 'MKAnnotation'

喜欢而已 提交于 2019-12-25 15:52:28
问题 I'm working on a tvOS app, where I want to be able to swipe between annotations. I store my annotations in a Dictionary, and store the Dictionary in an Array for future use. I am simply plotting three annotations for Canada, USA, and Mexico. I want to be able to swipe on the remote between these annotations. When an annotation is clicked, it will take you to information about that country. let countriesArray = ["Canada", "Mexico", "United States of America"] var annotationArray =

xamarin tvos live broadcast

可紊 提交于 2019-12-25 12:40:24
问题 I try to play live broadcast video on xamarin.tvos app, but not found the any solution(i see all live streaming solutions). How to play live broadcast video(ex. rtmp) on xamarin.tvos app? thnx all. 回答1: Apple does not natively support RTMP (Real Time Messaging Protocol) in their OSs (iOS, tvOS, macOS). HTTP Live Streaming (HLS) is natively supported (RFC8216). There are a number of 3rd-party RTMP libraries (OSS, dual license and commercial/proprietary) that will work on the various Apple OSs.

an internal error occurred . Source editor functionality is limited . Attempting to restore

ぐ巨炮叔叔 提交于 2019-12-25 09:02:11
问题 I am developing application for tvOS in swift using Xcode 7.3, I had written a Class to split events on the basis of my requirements like - import UIKit class SplitEvents: NSObject { var eventDisplayArray:NSMutableArray = [] var eventHiddenArray:NSMutableArray = [] var lastMemorisedDate:NSDate? var tempEventStartDateEndDateArray:NSMutableArray? func InitialiseFunction (displayArray:NSMutableArray, HiddenArray hiddenArray:NSMutableArray, ResultArray result:NSArray, completionHandler:

In Swift (tvOS) how do you change a UIButton's highlight and focus colors?

我只是一个虾纸丫 提交于 2019-12-24 00:18:40
问题 So I have some buttons that I've added to a view through the Interface Builder and rather than using the system buttons I made them custom. I'm trying to figure out how to change characteristics, such as the text color and background color during different states (highlighted, focused, etc). It doesn't seem like I can do it through the IB so I'll probably make a subclass of UIButton and change them there, but I'm having trouble finding what properties to change. I don't see them explicitly

How to handle Menu Button action in tvOS remote

最后都变了- 提交于 2019-12-23 18:24:23
问题 I am facing the strange problem with my application. Actually when i am presenting a view controller for play the video. At the video load time user press the menu button the application goes to background. While i have overwrite the Menu Button Action. This is my code. override func viewWillAppear(animated: Bool) { let menuPressRecognizer = UITapGestureRecognizer() menuPressRecognizer.addTarget(self, action: #selector(VideoPlayerViewController.menuButtonAction(_:))) menuPressRecognizer

Force view to reload tvml content on Apple TV/tvos

霸气de小男生 提交于 2019-12-23 15:49:34
问题 I have been working on dynamically generating tvml-templates with very frequently changing content for a tvOS app on Apple TV. Generating the templates works fine, however I have not been able to get the app to update/reload the content of a template when navigating back and forth between views or leaving and reentering the app. Only rebooting seems to reload the tvml template. 回答1: Your template will refresh itself automatically whenever you manipulate the TVML within the template document.

Authentication to dropbox on tvOS

怎甘沉沦 提交于 2019-12-23 07:51:28
问题 I am using dropbox sdk in my ios mobile app ,it uses dropbox authentication fetches users files from dropbox in my application .. its working perfectly on my ios application and its uploaded on apple store . i want to make it available for tvos apple stores also. but i am unable to authenticate to dropbox in tvos , as it opens authentication dialog to login and there is no way for the user to fill it, the UI does not meet the tvOS requirements. So I want to open a tvOS dialog for username

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

TVOS remote notification replacement

跟風遠走 提交于 2019-12-22 10:52:51
问题 I am building a TVOS app for the new Apple TV that needs to get notifications from a server to update it's display. Remote notifications are not allowed with TVOS, and it actually displays an error when you try to register the app for remote notifications. With this being said, are there any alternatives to what I need? To clarify: - The app stays running indefinitely, showing a display. - When the user adds content to the display, I want to notify any apps that are logged in to the same user

tvOS 10. PreferredFocusView is deprecated. How do I change to preferredFocusEnvironment?

社会主义新天地 提交于 2019-12-22 10:38:46
问题 I have a subview for which I have overridden the preferredFocusedView. The subclass has a UIView called viewToFocus. I check if that view exists, if it does I focus that view, if not I return the preferredFocusedView of the parent. Since I updated to tvOS 10 today I am getting the following error: 'preferredFocusedView' is deprecated: first deprecated in tvOS 10.0 - Use -preferredFocusEnvironments instead. I cant find anywhere in the documentation that explains how preferredFocusEnvironment