Created
March 16, 2017 18:19
-
-
Save DonMag/534776bbb94012f869f4afb816a5b4d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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