Post

Replies

Boosts

Views

Activity

Reply to iOS 16 CTCarrier deprecation
to display the carrier names of the active services on the phone. The real question is: why are you doing that? Is this an app whose whole purpose is to just list the carriers? Can the user act on this information in some way? If you were writing a clear purpose string for a hypothetical authorization prompt for accessing this information, exactly what would it say?
May ’23
Reply to Super basic noob-level question about graphics in iOS
I'm 74 years old. My35 year-old son and I are developing a game Well that’s the coolest thing I’ve encountered today! I understood that I would need to supply 1x, 2x, and 3x versions Actually no modern device uses 1x density, so you really need only 2x and 3x versions. Here’s a handy chart: https://www.ios-resolution.com Wouldn't any device accessing the 3x versions of the graphics all have blurry elements? Yep, the device will render exactly what you give it, if not resizing the image further or applying any other transformation. So you definitely want your image assets to look as good as possible at design time. created all the elements at that largest size, naming it the 3x version, so that subsequent 2x and 1x versions would be reductions Downscaling is probably better than upscaling, but for best results you may want to draw the artwork by hand for each density. The same image at each density will be roughly the same physical size on all devices, but the 3x density lets you provide richer detail. Or look into supplying vector assets, if that meets your needs.
Topic: App & System Services SubTopic: Core OS Tags:
May ’23
Reply to iOS 16 CTCarrier deprecation
We use the CTCarrier mobileCountryCode to route emergency calls based on the users location But note CTCarrier never guaranteed to give the real location in the first place. It was always the user’s home service provider, not the network they are actually on if roaming outside their home area. Core Location would be the right way to determine actual location, both before the CTCarrier deprecation and now.
May ’23
Reply to Is there a way to get satellites count using iOS API?
Now a question back at you is: why do you want this information? Is there a location capability your app requires beyond what Core Location already provides? And here’s a 7th and more recent item for your list: https://developer.apple.com/forums/thread/691886 From that discussion, note that “satellite count” may not even be meaningful in all cases where location data is available. Core Location does the hard work of abstracting away all the complex technology that goes into determining your location, to give you a simple “you are here (in this circle)” result which all that most apps need.
Topic: App & System Services SubTopic: Core OS Tags:
May ’23
Reply to "Expected to decode Array<Any> but found a dictionary instead.", underlyingError: nil))
Your JSON file contains a single Menu object, but your code is trying to decode it as an array. The type to decode should be Menu.self rather than [Menu].self. Then maybe check if your menu property should still be an array of Menu that probably only ever has one element, or just a single Menu. Or if the JSON could actually contain multiple Menu objects, then the server should always include the array brackets even when there happens to be only one.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’23