undo redo issues with CGLayer

后端 未结 2 1417
余生分开走
余生分开走 2020-12-11 12:39

I am working with unod redo operations on CgLayer, I have tried some code, but not able to get it working, dont know , where I am getting wrong, below is my code, which i ha

2条回答
  •  天涯浪人
    2020-12-11 13:09

    - (void)redrawLine
    {
        NSDictionary *lineInfo = [m_pathArray lastObject];
        NSValue *val = [lineInfo valueForKey:@"IMAGE"];
        CGContextRef context1 = (CGContextRef) [val pointerValue];
        CGContextDrawLayerAtPoint(context1, CGPointMake(00, 00),layerToShow);
        [self setNeedsDisplayInRect:self.bounds];
    }
    

    just update this method with ur code

提交回复
热议问题