Use the following lines:
self.progressHud.labelText = [NSString stringWithFormat:@"%@", message];
In a C object, this string gets values from any format, such as int, float, etc., to display the label. because UILabel and IBOutlet Elements only display NSString values.
However, if you do not need to create a string with multiple variables, it would be more efficient to simply use:
self.progressHud.labelText = message;
user1025285
source share