my example code is here and my fault is under the line thanks for advices.
Asked
Active
Viewed 410 times
1 Answers
1
This issue is dynamic and each time there is something for which compiler will complain.
I think given line of code in viewDidLoad
causing problem. Don't know compiler why complaining.
But if you comment this line of code then error will get removed. Try once by removing this line.
If it works, then try to work around this line.
currencyFormatter.currencyCode = (Locale.current as NSLocale).displayName(forKey: NSLocale.Key.currencySymbol, value: NSLocale.Key.currencyCode)
Here is segmentation fault thread, but each one has its own solution, there is no universal solution for this error.
Best luck!!!
-
Thank you for advice I'll try fastly : ) I am going to tell the result . – Mahmut Akyol Oct 08 '16 at 10:46
-
Thats worked fine : )) thank you so much. Take care, have a nice day my friend : )) @technerd – Mahmut Akyol Oct 08 '16 at 12:34
-
Do you get solution for that ? – technerd Oct 08 '16 at 12:42
-
Yes, I created new class for currency formatter and I called function in there. It' s worked, thank you again. @technerd – Mahmut Akyol Oct 08 '16 at 13:08