XCode :带有逗号的数字键盘
我有一个带有完成按钮的数字键盘。但用户只能选择不带逗号的数字。有没有办法让数字键盘带有完成按钮(我有),与标点符号集成,或者至少有一个逗号?
I have a number pad with done button. But the user can only choose numbers without commas. Is there a way to have a number pad with donebutton (which I have), integrated with punctuation, or at least a point for the comma?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题意味着你正在做一些格式化的数字。那么,您将使用固定小数位数的工作似乎是一个安全的假设(因为更常见的是看到具有固定小数位数的格式化数字比没有固定小数位数)。
如果这是真的,那么您根本不需要 . 或 , 按钮。您可以从固定的小数位数开始,然后将内容转移。例如,假设您要输入数字“4,238.07”。
Your question implies that you're doing to be doing some formatted number. It would then seem like a safe assumption that you're going to be working with a fixed number of decimal places (as it is more common to see a formatted number with a fixed number of decimal places than without).
If this is true, then you don't need the . or , buttons at all. You could just start with the fixed number of decimal places and shift stuff over. For example, let's say you want to type the number "4,238.07".