【发布时间】:2017-10-18 22:59:55
【问题描述】:
我收到一个错误,即这个表达式太复杂,无法在 swift 4 上在合理的时间内解决 谁能帮帮我?
- AppDelegate.removeGIF(withURL: "images/" + self.currentUID + "/" + self.thisPostId + "." + self.currentGifExt)
【问题讨论】:
-
使用字符串插值代替串联
"images/\(self.currentUID)/\(self.thisPostId).\(self.currentGifExt)"
标签: ios swift xcode xcode9 swift4