Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Image Using setImage removed the pulse #18

Open
vicky1787 opened this issue Mar 21, 2016 · 3 comments
Open

Setting Image Using setImage removed the pulse #18

vicky1787 opened this issue Mar 21, 2016 · 3 comments

Comments

@vicky1787
Copy link

Hello,

I want to use your animation effect with my custom Image as current location Image.

If I am giving your setImage: call then the pulsing is not seen around my image, Can you advice. I am also using ur Pods as instructed.

@vicky1787
Copy link
Author

This is code I used
img_5134

 if (annotation == mapView.userLocation)
    {
    static NSString *identifier = @"MyLocation";
    SVPulsingAnnotationView *pulsingView = (SVPulsingAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:identifier];

    if(pulsingView == nil) {
        pulsingView = [[SVPulsingAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:identifier];
        pulsingView.annotationColor = [UIColor colorWithRed:0.678431 green:0 blue:0 alpha:1];
        [pulsingView setImage:[UIImage imageNamed:@"location-pointer"]];//here we use a nice image instead of the default pins
        pulsingView.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
    }
    pulsingView.canShowCallout = YES;
    return pulsingView;

}

@vicky1787
Copy link
Author

Although now it pulse but the image is filled with this , i also try to remove the annotation color code but then its white, come how the image i not applied intermittently.

@vicky1787
Copy link
Author

I am setting this in your Demo app still the same issue.
simulator screen shot 21 mar 2016 4 44 09 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant