UILabel 的问题
我真的不知道为什么这不起作用,有人可以解释一下我做错了什么以及如何解决它吗?
-(IBAction)working {
workLength.text = @"Area =" Length.text @"x" Width.text;
}
提前致谢。
I don't really know why this isn't working, could someone please explain what I did wrong and how to fix it?
-(IBAction)working {
workLength.text = @"Area =" Length.text @"x" Width.text;
}
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要告诉 Objective C 如何格式化您尝试在 UILabel 中设置的字符串。
做这样的事情:
You need to tell Objective C how to format the string you're trying to set in that UILabel.
Do something like this: