. , -? , . , MKAnnotation - : , . NewCoordinate ββ . .
- :
@interface Vehicle : NSObject <MKAnnotation>
@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSString *subtitle;
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
@property (nonatomic, assign) CLLocationCoordinate2D newCoordinate;
@end
newCoordinate . , , .
- (void)setNewCoordinate:(CLLocationCoordinate2D)newCoordinate {
_newCoordinate = newCoordinate;
}
- , . , . hitTest , .
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
}
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
}
[UIView animateWithDuration:0
delay:0
options:UIViewAnimationOptionCurveEaseIn
animations:^{
} completion:nil];
, , .