From 290e44426e00af75d2fad7e95ef27e80b5daaa04 Mon Sep 17 00:00:00 2001 From: HarrisonXi Date: Fri, 29 Dec 2017 16:34:06 +0800 Subject: [PATCH] fix build warning --- VirtualView/View/VVGridView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtualView/View/VVGridView.m b/VirtualView/View/VVGridView.m index 19343aa..1a5f0bf 100644 --- a/VirtualView/View/VVGridView.m +++ b/VirtualView/View/VVGridView.m @@ -444,7 +444,7 @@ - (void)setDataObj:(NSObject*)obj forKey:(int)key{ - (void)setUpdateDelegate:(id)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)self;