草庐IT

coinInfo

全部标签

ios - Swift 3 转换得到 'Int1' 不能转换为 'Bool'

我正在将编译和运行的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

ios - Swift 3 转换得到 'Int1' 不能转换为 'Bool'

我正在将编译和运行的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