You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- (NSNumber *)defaultMember {
if (!_defaultMember) { // **Converting a pointer value of type 'NSNumber *' to a primitive boolean value; instead, either compare the pointer to nil or call -boolValue**
_defaultMember = @0;
}
return [_defaultMember copy];
}
- (void)resetMatrixToDefault:(NSNumber *)defaultValue {
if (defaultValue) { // **Converting a pointer value of type 'NSNumber *' to a primitive boolean value; instead, either compare the pointer to nil or call -boolValue**
self.defaultMember = defaultValue;
}
self.members = nil;
}
- (NSArray *)allMembers {
NSMutableArray *allMembers = [NSMutableArray arrayWithCapacity:self.count];
for (NSUInteger index = 0; index < self.count; index++) {
[allMembers addObject:self[index]]; // **Argument to 'NSMutableArray' method 'addObject:' cannot be nil**
}
return allMembers;
}
"UIImage+AGKQuad.h"
- (UIImage *)imageByCroppingToRect:(CGRect)rect
{
CGImageRef croppedImage = CGImageCreateWithImageInRect([self CGImage], rect);
return [UIImage imageWithCGImage:croppedImage scale:self.scale orientation:self.imageOrientation]; // **Potential leak of an object stored into 'croppedImage'**
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: