How to "undo" when we draw in iPhone SDK? [closed]

-(void)undoButtonClicked
{

    if([pathArray count]>0){
        UIBezierPath *_path=[pathArray lastObject];
        [pathArray removeLastObject];
        [bufferArray addObject:_path];
        [self setNeedsDisplay];
    }

}

Browse More Popular Posts

Leave a Comment