Fix the loss of Corner effect caused by tableViewCell reuse.

This commit is contained in:
wushangkun
2021-11-16 20:47:18 +08:00
committed by osborn
parent c53fe3c208
commit 7bc22c6c1f
2 changed files with 64 additions and 23 deletions

View File

@@ -20,6 +20,7 @@
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
typedef UIEdgeInsets DoricMargin;
typedef UIEdgeInsets DoricPadding;
@@ -121,3 +122,9 @@ typedef NS_ENUM(NSInteger, DoricGravity) {
@interface UIView (DoricLayout)
@property(nonatomic, strong) DoricLayout *doricLayout;
@end
@interface DoricShapeLayer : CAShapeLayer
@property CGRect viewBounds;
@property UIEdgeInsets corners;
@end