当前位置:网站首页>Access static variables within class in swift

Access static variables within class in swift

2022-06-12 23:14:00 Bustling city

problem :

Is ClassName.staticVaribale the only way to access static variable within the class?ClassName.staticVaribale Is it the only way to access static variables in a class ?I want something like self , but for class. I want to be like self Such things , But for class .Like class.staticVariable . image class.staticVariable .


Solution :

Reference resources : https://stackoom.com/en/question/21g3a
原网站

版权声明
本文为[Bustling city ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202281107533280.html