my NSDateFormatter works only in the iPhone simulator

后端 未结 7 2073
独厮守ぢ
独厮守ぢ 2020-12-20 04:13

I use a NSDateFormatter which works fine in the simulator, but I get a nil when I run it in the iPhone. I hardcoded the date to be sure of the format, but it fails anyway. <

7条回答
  •  -上瘾入骨i
    2020-12-20 04:20

    Nothing stands out, but to help debug this you could try feeding NSDateFormatter a date object and seeing if the resulting string has any minor differences from the one you're trying to parse.

提交回复
热议问题