andy12530
V2EX  ›  问与答

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

  •  
  •   andy12530 · Oct 4, 2014 · 2623 views
    This topic created in 4327 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
        1
    andy12530  
    OP
       Oct 4, 2014
    擦,我错了。。。
    apple从native API中删除了这些,但是在别的模块中有这些 API。

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