【发布时间】:2016-10-04 03:58:10
【问题描述】:
我正在尝试转换设备令牌并使用以下代码 (swift 3):
parameters["device_token"] = request.deviceToken.reduce("", {$0 + String(format: "%02X", $1)}).
但是我收到编译器错误Binary operator '+' cannot be applied to operands of type Any? and String。我在这里做错了什么?
【问题讨论】: