Post

Replies

Boosts

Views

Activity

Bug with Settings bundle on tvOS since 15.0 ?
Hello, Since tvOS 15, my apps (and also some other popular apps like VLC) have problems with the Settings app. The Settings app will always show the default values for the items, not the actual value from UserDefaults. The app itself does get the right value, but when you go to the settings app, you don't see the right values, you always see the default values instead. This is only happening on the actual device, it works fine in the simulator. Am I missing something in my code, or is this a regression in tvOS ? Steps to reproduce: Install VLC Go to the Settings app, Apps, VLC Change the Playback speed from 1.00x to 2.00x Kill the Settings app or Reboot the Apple TV Check the value again, it's showing 1.00x (but VLC will play at speed 2.00x)
1
1
626
Nov ’21
Receiving UDP/5353 packets in iOS app
Hello, I am trying to write an iOS app which could receive and analyze mDNS queries. More specifically, I have my app register a Bonjour service, and I need to see queries from the network for any subtype of my primary type, although I have not registered any subtype myself. Reason being that I have a device that tries to find me using a specific primary type, but always includes a subtype in its queries, and I can't know the subtype in advance, so I can't register my service with the subtype. So I'd need to see the query, extract the subtype and re-register my service with that subtype so that the device can then find me. Looks like the various APIs to interact with Bonjour won't let me do that. I've tried another approach and started a NWListener on port 5353 with allowLocalEndpointReuse set to true, but I'm getting "Address already in use" and it doesn't work, since this port is likely to be used by the mDNSresponder service. Is there an API I could use to achieve what I described above ?
2
0
1.7k
Oct ’21
tvOS SplitViewController not showing its MasterViewController
Hello, I'm trying to build a tvOS app and I'm having issues using SplitViewController inside a Tab Bar Controller. The app is built with Swift and UIKit and uses Storyboards. Main interface is a fullscreen view that plays some live video stream. User can open a menu, which is a Tab Bar Controller that overlays the video. Now, I want one of this Tabs (a Settings screen) to contain a SplitViewController so that I can have another menu on the left for various categories of settings. So I have dragged a SplitViewController in my storyboard. It displays well in the Interface Builder, with a Master view on the left side and the Detailed view on the right side. However, as soon as I Ctrl-drag from my TabBarViewController to the SplitViewController in order to add the relationship segue that will make this SplitViewController a new tab inside my TabBarController, then the MasterViewController inside the SplitViewController disappears and the Detailed view takes the entire space. When I run the app on a device, I do see the same thing. I can't see the left master view. I can't figure out why, any help would be appreciated.
0
0
522
Aug ’21