阅读背景:

应用程序在访问类中的第一个静态变量时崩溃

来源:互联网 

I'm building an iPhone app using Swift. I've created a Settings class and declared some static variables in them, for storing colors. However, whenever I try to access the first variable I've declared (such as Settings.grayBorderColor below), the app crashes (with some message about Settings.grayBorderColor.unsafeMutableAddressor). I can access any properties below the first one just fine, and if I switch the order of the properties/variables, it is still accessing whichever property is declared first that causes the crash.I'm building an iPhone app using Swift. I've cr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: