LeanCloud
LeanCloud
loveltyoic
V2EX  ›  LeanCloud

在 swift 中使用 subclass

  •  
  •   loveltyoic · Dec 26, 2014 · 3936 views
    This topic created in 4233 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   ·   5064 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 03:58 · PVG 11:58 · LAX 20:58 · JFK 23:58
    ♥ Do have faith in what you're doing.