LeanCloud
LeanCloud
loveltyoic
V2EX  ›  LeanCloud

在 swift 中使用 subclass

  •  
  •   loveltyoic · Dec 26, 2014 · 3928 views
    This topic created in 4231 days ago, the information mentioned may be changed or developed.
    class AVMoc: AVObject, AVSubclassing {
    class func parseClassName() -> String! {
    return "AVMoc"
    }

    var name: String {
    get {
    return objectForKey("name") as String
    }
    set {
    setObject(newValue, forKey: "name")
    }
    }
    }

    var avMoc = AVMoc()
    avMoc.name = "test"
    avMoc.save()
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3479 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:54 · PVG 12:54 · LAX 21:54 · JFK 00:54
    ♥ Do have faith in what you're doing.