Giter VIP home page Giter VIP logo

ios_movingannotation_demo's Introduction

iOS_MovingAnnotation_Demo

annotation移动及转向动画 -查看Demo请打开test.xcworkspace文件

使用教程

  • 添加MovingAnnotationSource文件夹内代码
  • 使用接口
/*!
 @brief 添加动画
 @param points 轨迹点串,每个轨迹点为TracingPoint类型
 @param duration 动画时长,包括从上一个动画的终止点过渡到新增动画起始点的时间
 */
- (void)addTrackingAnimationForPoints:(NSArray *)points duration:(CFTimeInterval)duration;

其中,轨迹点类型为:

@interface TracingPoint : NSObject
/*!
@brief 轨迹经纬度
*/
@property (nonatomic) CLLocationCoordinate2D coordinate;
/*!
@brief 方向,有效范围0~359.9度
*/
@property (nonatomic) CLLocationDirection course;
@end

注:多次调用添加动画接口,会按调用顺序依次执行添加的动画。 详见工程test文件夹。

截图效果

result

ios_movingannotation_demo's People

Contributors

cysgit avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.