ios - swift纯新手,请教各位.swift中使用self=super.init遇到错误
黄舟
黄舟 2017-04-18 09:46:33
0
1
714

在声明的方法中想调用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){
        
    }
    
    
}
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
左手右手慢动作

No need to judge, just super.init()just

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!