iphone - 警告 : Parse Issue: Use of GNU old-style field designator extension

标签 iphone ios warnings coordinates gnu

我尝试了以下代码:

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/

相关文章:

ios - 如何将iOS的RSS/XCode转换为NSDictionary

ios - 在 uibutton 中绑定(bind) Action -Reactive Cocoa

ios - 字典 swift 4 中的保留容量是什么?

ruby - 警告 : already initialized

Perl6 : How could I make all warnings fatal?

iphone - 如何使用 AFNetworking 2.0 下载图像?

iphone - 归档后 XCode 4 Project Navigator 中丢失的文件

Python PuLP "Overwriting previously set objective."和 __dummy = 无

ios - 无法从 iOS 中的 PHAssets 访问/var/mobile/Media/PhotoData/Sync/100SYNCD/文件夹中的媒体文件?

iphone - 如何选择UIScreen的显示方式覆盖整个电视屏幕?