LeanCloud
LeanCloud
loveltyoic
V2EX  ›  LeanCloud

在 swift 中使用 subclass

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