cell.textField.text = [contact valueForKey:formCell.variableName];
The valueForKey which i get is of unknown type, it can be NSNumber, int, float, NSString..
I want to convert the value to NSString.
using NSString stringWithFormat, should specify format specifier, the type of object is known at run time
valueForKey:will never returnintorfloat. Instead, it will wrap them intoNSNumbers. Details here.Therefore, you can use
"%@"to represent them instringWithFormat:.You can also use
descriptionmethod ofNSObjectlike this:[[contact valueForKey:formCell.variableName] description].