Post

Replies

Boosts

Views

Activity

Comment on NSDateFormatter dealloc EXC_BAD_ACCESS
Thanks for the reply @eskimo, it is very interesting that the order matters here. I will also review the system log link you sent. I also found the ISO8601DateFormatter and if I use that, I do not have to pass any parameters, the format is fine as is. In order to combine the two answers, is the recommendation still to just declare the formatter once on class level, like: static let formatter = ISO8601DateFormatter(); instead of let formatter = ISO8601DateFormatter(); inside the log function.
Jun ’22