Post not yet marked as solved
Please tell me if I'm missing something here - run these three lines of code in Playground: import UIKit let numberFormatter = NumberFormatter() let myformattedNumber="\(numberFormatter.string(from: NSNumber(value:10660066111620287))!)"gives me this output for myformattedNumber: "10660066111620288"See the difference of 7 vs 8. Anybody can tell me what is going on here..?(I found that problem in my app and first thought I had a bug in my algorithm, but the above is where the problem sits. I do need the formatting - related code ommitted here so as to not distract from the issue, so please don't suggest to just not use the formatter 🙂)
Hi, I added Mac (10.15) to the targets of my iPhone/iPad project, got it to work easily (great Job, Apple!), and published the Mac version. So far so good.
However, I don't see any way that would allow me to do something about the menu bar on top of the Mac desktop - I'd sure like to get rid of some menus that don't apply, and make use of a couple menu items - what am I missing here, where can I customize that menu bar..? It must be so obvious, yet I can't find it. I'm familiar with iOS development but not much yet with MacOS.
(On a related note, if there's a good tool to create a simple Apple Help file that'll be much appreciated as well!)
Thx!
Hi, I guess my issue is kind of the opposite of what I usually read about when folks localize their apps (but their localized strings don't show up) - I localized an app for iPhone, did the same for the Apple Watch portion of that app and all strings show up localized but my problem is, the watch always displays the localized strings, even when I set the watch back to English! The issue does not repro for the iPhone app portion; switching iOS lang back and forth switches the UI of my app as expected.A bit more in detail to help you be sure you understand: I base-developed in English, added German strings with NSLoc macros, switch both iOS and watch to German, and all works as expected. Then removed the app from iOS and the watch, set lang of both iOS and watch back to English, re-run from XC and the watch OS shows in English as expected, but the app UI still shows in German. (To test out the issue even further, I also added French localized strings - still iPhone switches languages of my app no problem, but the watch now always shows the French strings, even when I switch the watch to English *or* German!I checked all configuration bits and pieces, and don't see what could be causing this.Any idea what is going on here..? I did all this in XC 8.3; I'll try my luck with the current XC 9 beta but if you have any insights or ideas I'd love to know. Thx!