我正在将编译和运行的Swift2代码转换为Swift3,但出现以下错误:'Int1'isnotconvertibleto'Bool'代码如下:isUpdated=sharedInstance.database!.executeUpdate("UPDATECoin_TableSETupgrade=?,grade=?,WHEREcoin_id=?",withArgumentsInArray:[coinInfo.upgrade,(coinInfo.grade!=nil)?coinInfo.grade!:NSNull(),coinID])上面的代码使用FMDB,方法在FMDB.h中定义为-(B
我正在将编译和运行的Swift2代码转换为Swift3,但出现以下错误:'Int1'isnotconvertibleto'Bool'代码如下:isUpdated=sharedInstance.database!.executeUpdate("UPDATECoin_TableSETupgrade=?,grade=?,WHEREcoin_id=?",withArgumentsInArray:[coinInfo.upgrade,(coinInfo.grade!=nil)?coinInfo.grade!:NSNull(),coinID])上面的代码使用FMDB,方法在FMDB.h中定义为-(B