Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implemented perfect zoomToRect.

  • Loading branch information...
commit d10c3c71d5d590aac9fbd25e42a545bc762d0e59 1 parent 7498457
@mangoldm authored
Showing with 1 addition and 8 deletions.
  1. +1 −8 PhotoMap/ScrollingPhotoViewController.m
View
9 PhotoMap/ScrollingPhotoViewController.m
@@ -221,17 +221,10 @@ - (void)viewController:(UIViewController *)sender chosePhoto:(id)photo;
width = w2;
height = h2 - h1;
} else {
- width = w1;
+ width = w2 - w1;
height = h2;
}
- NSLog(@"self.scrollView.bounds.size.width:%f",self.scrollView.bounds.size.width);
- NSLog(@"self.scrollView.bounds.size.height:%f",self.scrollView.bounds.size.height);
- NSLog(@"self.imageView.image.size.width:%f",self.imageView.image.size.width);
- NSLog(@"self.imageView.image.size.height:%f",self.imageView.image.size.height);
- NSLog(@"width:%f",width);
- NSLog(@"height:%f",height);
- NSLog(@"===");
[self.scrollView zoomToRect:CGRectMake(0, 0, width, height) animated:YES];
[self.spinner stopAnimating];
});
Please sign in to comment.
Something went wrong with that request. Please try again.