Loving Coding & Visual Design

Xcode6.3出错NSString is not implicitly convertible to String

Xcode6.3最近更新后,swift出错:NSString is not implicitly convertible to String

直接用as String或者String()转型即可。

比如:

pathForResource(shaderName, ofType: "glsl")
=》
pathForResource(shaderName as String, ofType: String("glsl"))



下一页


最 近 文 章

  1. 前端之前路我瞻 - 2017-11-12T05:08:35.956Z
  2. 我看react lisence事件 - 2017-09-17T15:45:04.805Z
  3. FLASH阴谋论 - 2017-08-02T15:15:04.977Z
  4. Letsencrypt Renew 的坑 - 2017-08-02T15:12:37.509Z
  5. Hugo serve panic 报错 - 2017-06-22T03:41:30.426Z
  6. 把reactjs升级到15.5.4 - 2017-05-24T15:04:15.880Z
  7. 关于SSL证书 - 2017-05-03T16:40:33.137Z
  8. 关于小朋友和游戏 - 2017-04-09T08:38:25.592Z
  9. 小程序不全面自由开放只有死路一条 - 2017-03-29T14:49:25.034Z
  10. Xcode6.3出错NSString is not implicitly convertible to String - Tue, 14 Apr 2015 14:37:47 +0000