Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用以下行:
self.progressHud.labelText = [NSString stringWithFormat:@"%@", message];
在目标 C 中,此行从任何格式(例如 int、float 等)获取值以显示标签。因为 UILabel 和 IBOutlet 元素只显示 NSString 值。
但是,如果您不需要创建具有多个变量的字符串,那么简单地使用会更有效:
self.progressHud.labelText = message;