代码如下:
_gradientLayer.locations = @[@0.00f, @0.01f, @0.95f, @1.00f];
我只知道是用来声明数组的。但是需要更多详细解释。
谢谢您的帮助。
代码如下:
_gradientLayer.locations = @[@0.00f, @0.01f, @0.95f, @1.00f];
我只知道是用来声明数组的。但是需要更多详细解释。
谢谢您的帮助。
这是在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 以上版本的编译器里
完整链接: http://clang.llvm.org/docs/ObjectiveCLiterals.html