程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> ios-遇到不太熟悉的代碼語法,請指教

ios-遇到不太熟悉的代碼語法,請指教

編輯:編程綜合問答
遇到不太熟悉的代碼語法,請指教

代碼如下:

_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

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved