Comments (5)
Se você não vai usar outras funções específicas sobre dinheiro, eu recomendo usar um NSNumberFormatter
com currencyStyle
.
from azul-digital.
Entendi, mas a questão de ser "ponto" ou "virgula" no decimal do UITextField quando usuário digitar, não vai ter problemas né ? O currencyStyle vê localization né. Thanks.
from azul-digital.
Isso 👍
On Tue, Aug 9, 2016 at 11:28 PM, Leonardo Henrique Tsuda <
[email protected]> wrote:
Entendi, mas a questão de ser "ponto" ou "virgula" no decimal do
UITextField quando usuário digitar, não vai ter problemas né ? O
currencyStyle vê localization né. Thanks.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA9OO6FDEBpnJnLRjPM56HXIPPEOLcPuks5qePDygaJpZM4Jfb_V
.
Att,
Christian
from azul-digital.
Thanks bro 👍🏻
from azul-digital.
Estou com problemas de localization:
Se estou com iPhone com região Brasil, o separador é "," mas o Firebase é formatado com ".", então se eu não editar o valor na tela de edição do Card, da erro no Save porque o valor do crédito está formatado com "."
Exemplo: iPhone com região Brasil
- Salva valor = 100,99
- Tela de edição lê os dados do Firebase e retorna valor = 100.99
- Salva edição sem alterar o valor, da error no NumberFormatter porque o .locale é BR mas a string tá com separador ".".
Deixei a linha abaixo, mas dai da erro quando o iPhone está com .locale onde o formato do separador é "."
self?.currentUser?.cash = roundTwoDecimal((self?.cashEditTextField.text!)!.replacingOccurrences(of: ".", with: ","))
Como fazer o separador ficar global ?
from azul-digital.
Related Issues (13)
- Fluxo de Login HOT 1
- Refactoring HistoryTableViewController HOT 1
- Feature: Local Notification HOT 2
- Add timeout and show erros message
- Feature: Timeline for free spot HOT 1
- Xcode Simulator HOT 1
- Renomear Protocolos HOT 1
- StackView HOT 1
- UX - MapViewController
- UIImagePickerController warning HOT 5
- Fix Profile/ProfileEdit ViewController HOT 1
- Fix Localization HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azul-digital.