This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSLog(@"%@ in: %@ - %@", [error description], [[self class] description], NSStringFromSelector(_cmd)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSLog(@"%@ - %@", [[self class] description], NSStringFromSelector(_cmd)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (UIView *view in [self subviews]){ | |
if ([view isKindOfClass:[UIView class]]){ | |
[view removeFromSuperview]; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIBezierPath *maskPath; | |
maskPath = [UIBezierPath bezierPathWithRoundedRect:<#view#>.bounds | |
byRoundingCorners:(UIRectCornerTopLeft | UIRectCornerTopRight) | |
cornerRadii:CGSizeMake(<#width#>, <#height#>)]; | |
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; | |
maskLayer.frame = <#view#>.bounds; | |
maskLayer.path = maskPath.CGPath; | |
<#view#>.layer.mask = maskLayer; |