NSDate Confusion
I was working with the NSDate class for my iPhone applications and was using descriptionWithCalendarFormat:timeZone:locale: to display my date objects. It compiles and runs fine, without any errors/warnings, on the simulator only. Once you switch your active sdk to the device instead of the simulator the compilation fails. I had to use NSDateFormatter instead, which compiles fine on both.
This seems like a bug to me, but I'm wondering if anyone else experienced this situation with other methods. Its really annoying to develop on the simulator only to find out when your testing on the device that the code isn't available.
So be careful when developing to check and make sure your code compiles on the device sdk as well, because you'll be stuck with code that doesn't work on the device but runs fine on the sim.


0 Comments:
Post a Comment
<< Home