NSString intValue not working for retrieving phone number

后端 未结 2 998
悲哀的现实
悲哀的现实 2020-12-22 12:02

I have a phone number formatted as an easy to read phone number, i.e., (123) 123-4567

However, when I want to use that phone number in code, I need to p

2条回答
  •  余生分开走
    2020-12-22 12:16

    2147483647 is INT_MAX which is returned on overflow. How large is your phone number, will it fit into an int? Maybe you should use longLongValue?

提交回复
热议问题