I am working on weather application. I am putting annotation on the map and annotation callout display temp. However once tempertature goes above three digits, it shows three dots instead of value. How could I format the value to display three digits. Any suggestions?
int value=[att integerValue];
it was:
annotation.title=[NSString stringWithFormat:@"Ozone Level:%@",value];
it is:
annotation.title=[NSString stringWithFormat:@"Ozone Level: %@ ",value];
Integers are not pointers, you are trying to use the object specifier (
%@) instead of the integer specifier:Try