8

我尝试了以下代码:

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

并且编译器显示以下警告

warning: Parse Issue: Use of GNU old-style field designator extension

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

4

1 回答 1

15
CLLocationCoordinate2D coord = {.latitude =  61.2180556, .longitude = -149.9002778};
于 2012-07-31T13:17:41.333 回答