Saturday, 15 March 2014

objective c - create custom annotation animation ios -


I want to create custom annotation animations like this app: - In this app when the user is dragging the map, the annotation is slightly raised. Then when pulling off, it falls from the place raised with a nice animation.

By now, I came to know that, I can use the static image in the center of my screen to show the movement map, & amp; When I stop dragging the map, I have to create a custom animation for the annotation view.

So far I have implemented this code through which I see an image being hidden or shown on the map in the center of the screen

- (zero) touch Enhanced: (NSSET *) touches with Eve: Event (UEVENT *) Event {[Super-toned: Effects Avent: Event]; (UIT Touch * Touch to Touch) {CG Point Lok = [View in Touch Position: Self. Map View]; If (inside [self.mapView point: public documentor: event]) {self.mapKitAnnotationimageView.hidden = NO; ImageCheck = No; }}} - (zero) touch has touched: (nsset *) touches the event: (UIEvent *) event {imageCheck = NO; Self.mapKitAnnotationimageView.hidden = Yes; } - (Zero) MapView: (MKMapView *) MapView areaDownloadedDownloadedApplications: Animated (BOOL) (if (image!) {Self.mapKitAnnotationimageView.image = [UIImage imageNamed: @ "location"]; imageCheck = Yes;}} < Any help related to custom animation will be greatly appreciated.

Thank you for your time.


No comments:

Post a Comment