+ 27

How to convert String to Int in Swift?

30th Mar 2020, 6:04 PM
TheBot - Бот r-33076
TheBot - Бот r-33076 - avatar
3 Answers
+ 9
Use Int initializer let variableName:Int? = Int(stringVariableName )
30th Mar 2020, 6:15 PM
Gordon
Gordon - avatar
+ 21
Thank you very much
30th Mar 2020, 6:16 PM
TheBot - Бот r-33076
TheBot - Бот r-33076 - avatar