我尝试了以下代码:

CLLocationCoordinate2D coord = {latitude: 61.2180556, longitude: -149.9002778};

并且编译器显示以下警告
warning: Parse Issue: Use of GNU old-style field designator extension

有人可以帮助我了解编译器要说什么吗?

最佳答案

CLLocationCoordinate2D coord = {.latitude = 61.2180556,.longitude = -149.9002778};

10-04 22:11