Trailing closure in this context is confusable with the body of the statement; pass as a parenthesiz

API接口不一致;

Archive之后,报警,即可知道到底是什么;自动补全;

if let index = self.noteLists.firstIndex { (noteInfo) -> Bool in noteInfo.noteId == speechInfo.noteId}{

}).disposed(by: disposeBag)

 

let tindex = self.noteLists.firstIndex(where: { (noteInfo) -> Bool in noteInfo.noteId == speechInfo.noteId }) 

if let index = tindex {

}

©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页