我已经应用了两种忽略var photos = Array<RLMFile>()
的方法,但这两种方法在swift中都显示错误。我用方法写下了错误。
1. public class func ignoredProperties() -> [AnyObject] {
return ["photos" as AnyObject]
}////this method give error :- method ignoredProperties() with objective-C selector 'ignoredProperties' conflicts with method 'ignoredProperties() from superclass
2. override class func ignoredProperties() -> [AnyObject] {
return ["photos" as AnyObject]
}//this method give error :- Method does not override any method from its superclass