LeanCloud
LeanCloud
loveltyoic
V2EX  ›  LeanCloud

在 swift 中使用 subclass

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