Return nil upon failure to initialize

This commit is contained in:
Minh Nguyễn
2015-05-27 12:36:52 -07:00
parent 2ce4ae3047
commit a2986b2019

View File

@@ -132,9 +132,10 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
if (self && [self commonInit])
{
self.styleURL = styleURL;
return self;
}
return self;
return nil;
}
- (instancetype)initWithCoder:(NSCoder *)decoder