Post

Replies

Boosts

Views

Activity

Bug in NumberFormatter..?
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 🙂)
8
0
2.2k
Oct ’17
Menu bar of iOS app with added Mac version
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!
2
0
856
Nov ’20