Silver Challenge


Here’s what I did for the silver challenge solution.
In TouchDrawView.m

//for the Silver Challenge pressRecognizer=[[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPress:)]; [self addGestureRecognizer:pressRecognizer];

In TouchDrawView.h add

UILongPressGestureRecognizer *pressRecognizer;
Then the only thing left is to add this to the beginning of MoveLine:

    //Add this to fix a bug for silver challenge.
    //the selected line can only be moved when the long press is already happening.
    //Now you can draw a new line, while still keeping the other line selected
    //and it's menu visible

    if ([pressRecognizer state]==UIGestureRecognizerStatePossible)