在声明的方法中想调用self=super.init,遇到错误. cannot assign to value:'self' is immutable
public class initWithData:NSObject{
func initWithDataModel(superID:Int,myID:Int,grade:Int,isOpen:Bool,showName:NSString,rightShowName:NSString){
if(self = super.init){
}
}
不用判断,直接
super.init()
即可