Post

Replies

Boosts

Views

Activity

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
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 version number
I have only verion 1.029. Does apple truncate it and consider 1.029 as 1.29 ? Yes, exactly. The individual segments in a version string are treated as integers and leading zeroes are meaningless. A two-segment version string may look like a decimal fraction but it’s not.
May ’23
Reply to Fatal Error - Couldn't parse lesssonData.json as array <Lesson>
I am receiving the error - Couldn't parse lesssonData.json as array fatalError("Couldnt parse \(filename) as \(T.self):\n\(error)”) Is the output from fatalError() missing the actual content of the error variable that you are trying to print as a 2nd line? If so, try removing the line break (\n). Or just put a breakpoint there and examine error directly. You need to see exactly what error is being thrown in order to debug the problem.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’23
Reply to Release hotfix for old version train
is it requiered to upgrade the last number of version ? The new release version does need to be greater than the old one, but you aren’t specifically required to bump the last segment. Valid new versions would include 1.2.2, 1.3, 1.11, 2.0, or even 99.44. But for a “hotfix” the customary one to use would be 1.2.2. Going forward, you may find it easier to bump the 2nd segment for any “new things”, which would be 1.3 in this case. Then you can always add a 3rd segment just for bug fix releases.
May ’23