objcio / app-architecture

Sample Code of the App Architecture Book
https://www.objc.io/books/app-architecture
2.06k stars 306 forks source link

MVC 模式下setName的时候更新有误 #24

Open tekizhong opened 5 years ago

tekizhong commented 5 years ago

FolderViewController.swift 中
if let changeReason = userInfo[Item.changeReasonKey] as? String { let oldValue = userInfo[Item.newValueKey] let newValue = userInfo[Item.oldValueKey] 应改为: if let changeReason = userInfo[Item.changeReasonKey] as? String { let oldValue = userInfo[Item.newValueKey] let newValue = userInfo[Item.oldValueKey]