如何修复 xcode 警告“表达式结果未使用”在 xcode 4 中用于 UIActivityIndicatorView
我收到警告警告
spinner.hidesWhenStopped;
:表达式结果未使用
希望有人知道这一点
非常感谢
i am getting a warning for
spinner.hidesWhenStopped;
warning : Expression result unused
hope any one know this
Thank you very much
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
那么
hidesWhenStopped
是spinner
的一个属性,你不需要用它做任何事情。尝试将值设置为或
Well
hidesWhenStopped
is a property ofspinner
and you don't do anything with it. Try setting a value as inor
您似乎正在尝试将活动指示器设置为在停止动画时隐藏。
spinner.hidesWhenStopped
行不会调用 setter 方法。如果你想调用 setter 方法,你必须使用,或者,
It seems you are trying to set the activity indicator to hide when stopped animating. The line
spinner.hidesWhenStopped
doesn't call the setter method. If you want to call the setter method you have to either use,or,