-
Notifications
You must be signed in to change notification settings - Fork 377
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
NSLog warning #15
Comments
object-c 项目 |
没太明白你的意思,你用 |
解决了 少写一句话 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
警告:Expression result unused
方法 objcLog 也没有 返回值啊
求解
谢谢
具体的 是这样 :
想打印 一个 int 或者 float 或者 NSInteger 数值
NSLog(@"num:%ld",index);
报错:Implicit conversion of 'int' to 'id _Nonnull' is disallowed with ARC
然后我转成 NSNumber
NSLog(@"num:%@",[NSNumber numberWithInt:index]);
就出现 警告:Expression result unused
The text was updated successfully, but these errors were encountered: