I use an excellent, but not ARC project: https://github.com/boredzo/iso-8601-date-formatter
I am trying to use the following method from this library, which is not ARC in an ARC project:
- (NSDate *) dateFromString:(NSString *)string timeZone:(out NSTimeZone **)outTimeZone;
I tried:
group.updatedAt = [formatter dateFromString:someString timeZone:[NSTimeZone localTimeZone]]; group.updatedAt = [formatter dateFromString:someString timeZone:*__autorelease [NSTimeZone localTimeZone]]; group.updatedAt = [formatter dateFromString:someString timeZone:(*__autoreleasing [NSTimeZone localTimeZone]] *); group.updatedAt = [formatter dateFromString:someString timeZone:[[NSTimeZone localTimeZone] autorelease]];
Please note that I'm pretty new to iOS, so I have no memory management experience.
But with all these attempts, I received the following error message:
Implicit conversion of an Objective-C pointer to 'NSTimeZone *__autoreleasing *' is disallowed with ARC
So how to use library methods other than ARC in an ARC project?
ios objective-c cocoa-touch automatic-ref-counting
GangstaGraham May 11 '13 at 1:39 a.m. 2013-05-11 01:39
source share