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

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

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

répondre à tous(1)
左手右手慢动作

Pas besoin de juger, juste super.init()juste

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!