Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于类型转换的问题 #41

Closed
y1990 opened this issue Dec 10, 2021 · 1 comment
Closed

关于类型转换的问题 #41

y1990 opened this issue Dec 10, 2021 · 1 comment

Comments

@y1990
Copy link

y1990 commented Dec 10, 2021

为什么字符串和NSNumber不能转换int, float和double这种基本类型。@"123".intValue()打印出来的是

@y1990 y1990 closed this as completed Dec 10, 2021
@y1990
Copy link
Author

y1990 commented Dec 10, 2021

我知道了,是因为NSLog只支持打印对象

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant