开发者社区 问答 正文

遇到不太熟悉的代码语法

代码如下:
_gradientLayer.locations = @[@0.00f, @0.01f, @0.95f, @1.00f];

我只知道是用来声明数组的。但是需要更多详细解释。

展开
收起
爵霸 2016-03-24 10:06:34 1559 分享 版权
1 条回答
写回答
取消 提交回答
  • 这是在objective中新加的文字:

    Users of Apple compiler releases can use these features starting with the Apple LLVM Compiler 4.0. Users of open-source LLVM.org compiler releases can use these features starting with clang v3.1.

    在 XCode4.4 以上版本的编译器里

    2019-07-17 19:12:03
    赞同 展开评论
问答地址: