我尝试了以下代码:
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};
关于iphone - 警告 : Parse Issue: Use of GNU old-style field designator extension,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11740931/