+ Vastly improved blur Annotation.

This commit is contained in:
moritz haarmann
2014-03-19 13:27:55 +01:00
parent e0057f650e
commit 7b19d21c49
2 changed files with 18 additions and 7 deletions

View File

@@ -162,6 +162,8 @@
self.currentAnnotation.frame = CGRectMake(self.panStart.x, self.panStart.y, bla.x - self.panStart.x, bla.y - self.panStart.y);
self.currentAnnotation.movedDelta = CGSizeMake(bla.x - self.panStart.x, bla.y - self.panStart.y);
self.currentAnnotation.imageFrame = [self.view convertRect:self.imageView.frame toView:self.currentAnnotation];
[self.currentAnnotation setNeedsLayout];
[self.currentAnnotation layoutIfNeeded];
} else {
self.currentAnnotation = nil;
self.isDrawing = NO;
@@ -183,6 +185,8 @@
self.currentAnnotation.frame = annotationFrame;
self.currentAnnotation.imageFrame = [self.view convertRect:self.imageView.frame toView:self.currentAnnotation];
[self.currentAnnotation setNeedsLayout];
[self.currentAnnotation layoutIfNeeded];
[gestureRecognizer setTranslation:CGPointZero inView:self.view];