andy12530
V2EX  ›  问与答

哪里可以找到 swift 完整的参考文档

  •  
  •   andy12530 · Oct 4, 2014 · 2734 views
    This topic created in 4414 days ago, the information mentioned may be changed or developed.
    类似于JS对应 MDN一样的文档。
    字符串,数组有哪些native API以及调用方式,网上没找到。

    uppercaseString,rangeOfString这些之前的native接口现在全没了


    PS: 尝试学习swift,发现里面坑好深。
    Apple三天两头,就把语法里面的native API去掉或者规则改掉。
    网上一大堆没有用,全是把官方的学习文档改改,说是新的教程。
    4 replies  •  2014-10-04 20:30:39 +08:00
    andy12530
    andy12530
    OP
    Oct 4, 2014
    1
    擦,我错了。。。
    apple从native API中删除了这些,但是在别的模块中有这些 API。

    如果是 OSX 应用,需要在顶部导入Cocoa模块,
    如果是 iOS 应用,则需要引入UIKit模块。
    andy12530
    andy12530
    OP
    Oct 4, 2014
    2
    难道必须从Xcode帮助中找文档么
    wangfeng3769
    wangfeng3769
    Oct 4, 2014
    3
    王巍出了本书看看$3.99
    dorentus
    dorentus
    Oct 4, 2014
    4
    https://developer.apple.com/swift/resources/ Guides and Reference 那一段。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4192 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 01:06 · PVG 09:06 · LAX 17:06 · JFK 20:06
    ♥ Do have faith in what you're doing.