Skip to content

Commit

Permalink
fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonXi committed Dec 29, 2017
1 parent 25d7a79 commit 290e444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VirtualView/View/VVGridView.m
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ - (void)setDataObj:(NSObject*)obj forKey:(int)key{

- (void)setUpdateDelegate:(id<VVWidgetAction>)delegate{
if (self.drawLayer==nil) {
self.drawLayer = [CALayer layer];
self.drawLayer = [VVLayer layer];
self.drawLayer.drawsAsynchronously = YES;
self.drawLayer.contentsScale = [[UIScreen mainScreen] scale];
self.drawLayer.delegate = (id<CALayerDelegate>)self;
Expand Down

0 comments on commit 290e444

Please sign in to comment.