Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIScrollView - Custom Map - Prevent marker subview on map from scaling with map
- CGPoint ULPC = userLocationPlaceholder.center;
- float zs = scrollView.zoomScale;
- CGRect newFrame = CGRectMake(((ULPC.x * zs) - scrollView.contentOffset.x) - 20, ((ULPC.y * zs) - scrollView.contentOffset.y) - 20, 40, 40);
- -(void)animeUserLocationAttachment
- {
- [UIView animateWithDuration:0.05
- delay:0
- options:(UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionCurveLinear )
- animations:^{
- userLocationDotContainer.frame = newFrame;
- } completion:^(BOOL finished){
- // Call self
- [self animateUserLocationAttachment];
- }];
- }
Advertisement
Add Comment
Please, Sign In to add comment