【发布时间】:2016-09-21 04:56:11
【问题描述】:
迁移到 swift3 后,您好。我有这个问题?你们知道哪里错了吗?
对成员“/”的模糊引用
let rateForPeriod = interestRate! / Double(100) / Double(K.monthsEachYear)
【问题讨论】:
-
interestRate的类型? -
双重类型的兄弟
-
如果我这样写的话错误似乎消失了 var rateForPeriod = interestRate! / Double(100) rateForPeriod = rateForPeriod / Double(K.monthsEachYear) 解决这个问题的方法正确吗?
-
这样试试
(interestRate! / Double(100)) / Double(K.monthsEachYear)
标签: reference alamofire swift3 ambiguous