I want to develop an application that can convert UITextField
values into integer, float and double.
I am facing problem to convert String
value into Integer
.
Can anyone suggest the better way for conversion.
I have tried the following code but it didn't worked for Swift 4
and Xcode 10.
let result = txtTotakeInput.text
var newSTrings = Int(result!)
Thanks in advance.