Thank you for the help, Claude. It prints every time only one object after each calculation: ["RUB"], then ["EUR"]. It doesn't append items in it like ["RUB", "EUR"] etc. How can I fix that behaviour?
Also if I print print(currencyRowsArray) after currencyRowsArray = fetchResult as! [String] it always prints [] = it loads empty after fetch. Then I did something wrong with initialisation part?
Thanks, Claude. In that case the textfield will be hidden only for 1 cell (from which I started editing mode. All other cells will still show the textfield. I want it to be hidden of all cells. That's why I tried to change it in cellForRowAt(). Any thoughts how to hide it for all at once? Also when editing mode is off the textfield is still hidden...
Thank you very much for the kind answer. I think I found a solution with NSNumberFormatter just like you advised: NumberFormatter().roundingMode = .down and .maximumFractionDigits = 4, did the trick for me.
No need to answer on my below post, I figured it out by myself. Moved label to a tableView header and got rid of scrollView. Now work as I need. Thank you, Claude!
Thank you for the help, Claude. It prints every time only one object after each calculation: ["RUB"], then ["EUR"]. It doesn't append items in it like ["RUB", "EUR"] etc. How can I fix that behaviour?
Also if I print print(currencyRowsArray) after currencyRowsArray = fetchResult as! [String] it always prints [] = it loads empty after fetch. Then I did something wrong with initialisation part?
Thanks, Claude. In that case the textfield will be hidden only for 1 cell (from which I started editing mode. All other cells will still show the textfield. I want it to be hidden of all cells. That's why I tried to change it in cellForRowAt(). Any thoughts how to hide it for all at once? Also when editing mode is off the textfield is still hidden...
Thank you very much for the kind answer. I think I found a solution with NSNumberFormatter just like you advised: NumberFormatter().roundingMode = .down and .maximumFractionDigits = 4, did the trick for me.
No need to answer on my below post, I figured it out by myself. Moved label to a tableView header and got rid of scrollView. Now work as I need. Thank you, Claude!