在声明的方法中想调用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){
}
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
不用判断,直接
super.init()即可