pfsubclassing

PFSubclassing with array pointer and swift 1.2 - fatal error: NSArray element failed to match the Swift Array Element type

南楼画角 提交于 2019-12-10 13:22:30
问题 With swift 1.2, I can no longer retrieve an array of poiter with parse subclass and downcasting it with another parse subclass. I always found the error: fatal error: NSArray element failed to match the Swift Array Element type Do you have an idea or it may come? The code: import Foundation class ShotModel : PFObject, PFSubclassing { /** * MARK: Properties */ @NSManaged var name: String @NSManaged var pics: [PicModel] override class func initialize() { var onceToken : dispatch_once_t = 0;

Subclassing Parse's PFUser in Swift

孤街浪徒 提交于 2019-12-07 06:40:08
问题 First off, I know similar questions have been asked before and I've tried following the advice of this stackoverflow answer here to no avail. I also tried adding the basic gist of this as a comment, but I don't have enough rep yet :( Basically I am trying to use PFSubclassing to extend Parse's PFUser model. As such, here's my corresponding code: User.swift: import Foundation import CoreLocation class User : PFUser, PFSubclassing { override init() { super.init() } convenience init(email:

Subclassing Parse's PFUser in Swift

☆樱花仙子☆ 提交于 2019-12-05 10:11:39
First off, I know similar questions have been asked before and I've tried following the advice of this stackoverflow answer here to no avail. I also tried adding the basic gist of this as a comment, but I don't have enough rep yet :( Basically I am trying to use PFSubclassing to extend Parse's PFUser model. As such, here's my corresponding code: User.swift: import Foundation import CoreLocation class User : PFUser, PFSubclassing { override init() { super.init() } convenience init(email: String!) { self.init() self.email = email self.username = email } // don't need to call User