Objective-C Library for Sunrise and Sunset?

前端 未结 7 619
没有蜡笔的小新
没有蜡笔的小新 2021-02-01 06:14

Is there an Objective-C (or C) library (that is compatible with core location) that can tell me the time of sunrise and sunset for any given calendar day?

7条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 07:04

    Try this: https://github.com/mourner/suncalc/

    Very clear and easy to implement, although it writen by javascript but it is easy to convert it to
    objective-C

    It also support for calculate sun, moon position and coordinate.

提交回复
热议问题