diff --git a/AutoCoding/AutoCoding.m b/AutoCoding/AutoCoding.m index 5029ebb..452a54f 100644 --- a/AutoCoding/AutoCoding.m +++ b/AutoCoding/AutoCoding.m @@ -259,7 +259,10 @@ - (void)setWithCoder:(NSCoder *)aDecoder - (instancetype)initWithCoder:(NSCoder *)aDecoder { - [self setWithCoder:aDecoder]; + self = [self init]; + if (self) { + [self setWithCoder:aDecoder]; + } return self; }