Calling boolValue instead of converting NSNumber

Problem found with static analysis code of Xcode 9.3.
This commit is contained in:
Emanuele Garolla
2018-05-04 15:57:09 +02:00
committed by GitHub
parent cabb7d4c97
commit 0e15547807

View File

@@ -38,7 +38,7 @@
if (ENABLE_DEBUG_SHAPES) {
[self.wrapperLayer addSublayer:DEBUG_Center];
}
if (layer.startFrame) {
if ([layer.startFrame boolValue]) {
_frameOffset = layer.startFrame;
} else {
_frameOffset = @0;