Skip to content

Instantly share code, notes, and snippets.

@DonMag
Created March 16, 2017 18:19
Show Gist options
  • Select an option

  • Save DonMag/534776bbb94012f869f4afb816a5b4d5 to your computer and use it in GitHub Desktop.

Select an option

Save DonMag/534776bbb94012f869f4afb816a5b4d5 to your computer and use it in GitHub Desktop.
if(foundExtra == NO)
{
if(movingStopped == NO)
{
if (!currentDrawingImage) {
NSLog(@"why is it not valid here?");
} else {
drawOn = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, currentDrawingImage.size.width/2, currentDrawingImage.size.height/2)];
drawOn.image = currentDrawingImage;
drawOn.tag = lastTag + 1;
lastTag++;
CGPoint touchPoint = [[touches anyObject] locationInView:self.view];
drawOn.center = CGPointMake(touchPoint.x, touchPoint.y);
[bigView addSubview:drawOn];
lastTouchedPoint = touchPoint;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment