照文档写了swift 却报错。。
"Student.Type" does not have a member named 'registerSubclass'
求解,,SWIFT不能用子类吗??
把Student这个搞成OC,混编没问题,,我发里写错了吗???
class Student:AVObject,AVSubclassing{
var name:NSString = ""
class func parseClassName() -> String! {
return "user"
}
}
func application(application: UIApplication!, didFinishLaunchingWithOptions launchOptions: NSDictionary!) -> Bool {
Student.registerSubclass()//这里把错"Student.Type" does not have a member named 'registerSubclass'
AVOSCloud.setApplicationId("********", clientKey: "*****")
return true
}
1.自定义Person类

2.修改Bridge

3.使用

4.完成
