mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-06 17:32:52 +08:00
Use instancetype in constructors for increased subclassing friendliness
This commit is contained in:
@@ -33,9 +33,9 @@ static NSTimeInterval RKDotNetDateFormatterMillisecondsFromSeconds(NSTimeInterva
|
||||
|
||||
@implementation RKDotNetDateFormatter
|
||||
|
||||
+ (RKDotNetDateFormatter *)dotNetDateFormatterWithTimeZone:(NSTimeZone *)newTimeZone
|
||||
+ (instancetype)dotNetDateFormatterWithTimeZone:(NSTimeZone *)newTimeZone
|
||||
{
|
||||
RKDotNetDateFormatter *formatter = [[RKDotNetDateFormatter alloc] init];
|
||||
RKDotNetDateFormatter *formatter = [self new];
|
||||
if (newTimeZone) formatter.timeZone = newTimeZone;
|
||||
return formatter;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user