You're calling -appendString:
with myDate
, which isn't a string. It's an NSDate
. You can't pass it to an API that expects a string. You need to convert it into a string somehow. This is probably best done using NSDateFormatter
, which gives you full control over how to format your date as a string.
For testing purposes though, you can just replace your last line with [myString appendString:[myDate description]]
and it should stop crashing.