opfo / app

An iOS app for the EDA397 course made at Chalmers in the spring of 2013.
7 stars 1 forks source link

OPFUser's property creationDate and lastAccessDate typed to NSCFString at runtime #15

Closed tdeekens closed 11 years ago

tdeekens commented 11 years ago

Howdi,

both properties in the OPFUser.h are typed to NSDate.

@property (strong, readonly) NSDate* creationDate;
@property (strong) NSDate* lastAccessDate;

Where NSLog-ging the "creationDate.class" returns an NSCFString which seems to be a member of NSString but still is a different implementation of it with shared stuff.

I crosschecked this with the OPFQuestion.h where date-values are of the same "strange" type. Is this Mantle again? Setting anything in the UI with such a model's property fails because the compiler assumes it being a NSDate while NSDateformatters obviously also fail.

So make all the dates NSStrings or somehow fix them to be actual NSDate-objects I guess.

Cheers, Tobi

rastersize commented 11 years ago

Fixed in 26cc616a4b6de55fd41e15b6cd78ed7f074e98f5.