CLLocationDegrees initialization

后端 未结 2 687
慢半拍i
慢半拍i 2020-12-31 11:30

How do you make a CLLocationDegrees? It\'s not a float, so what is it?

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-31 11:54

    According to the CLLocation documentation, CLLocationDegrees is simply a double. So to create one, you could do something as simple as this:

    CLLocationDegrees degrees = 45;
    

提交回复
热议问题