LeanCloud
LeanCloud
loveltyoic
V2EX  ›  LeanCloud

在 swift 中使用 subclass

  •  
  •   loveltyoic · Dec 26, 2014 · 3927 views
    This topic created in 4230 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   ·   2984 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:31 · PVG 08:31 · LAX 17:31 · JFK 20:31
    ♥ Do have faith in what you're doing.