1
我是swift的新手。我想在静态函数中使用无静态成员的Swift类以下是我的代码。我无法在静态函数中访问静态类的成员。有没有办法在swift函数中访问非静态成员?在swift类的静态函数中访问非静态常量
public class Test{
private let testString:String
init(test:String){
testString = test
}
static func Get(url:String){
//Here testString is not accessable..
}
}