我一直得到这个二元运算符错误"二元运算符' *'不能应用于' int'类型的操作数和' double'
var listCount = imageNameList.count
var roll: Double = SUPCalculator.degrees(motion.attitude.roll)
if startDegree == 0.0 {
self.startDegree = SUPCalculator.degrees(motion.attitude.roll)
}
var diff: Double = roll - startDegree
var diffChange: Double = diff / 50
// I get the error here
var diffIndex = listCount * diffChange
答案 0 :(得分:4)