When I use this link to grab the item schema for TF2, (http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&language=en), under the attributes property, there's a list of every attribute in the game for TF2.
For example this is one such attribute:
{
"name": "gesture speed increase",
"defindex": 201,
"attribute_class": "mult_gesture_time",
"description_string": "+%s1% faster taunt speed on wearer",
"description_format": "value_is_percentage",
"effect_type": "positive",
"hidden": false,
"stored_as_integer": false
},
Under the "description_string"
property you can see that the string uses a format specifier, but how do implement this in xcode. %s1 in xcode isn't the correct format specifier for strings, so how do I change it?
EDIT: What I'm trying to do it basically use [NSString stringWithFormat:@"+%s1% faster taunt speed on wearer", @"25"]
. The problem is that when I NSLog this statement, the number doesn't show up and instead some weird symbols do. I want to have the statement "+25% faster taunt speed on wearer", so how do I achieve this?