简体   繁体   中英

Cannot convert value of type '[UserModel]' to expected argument type '[AnyHashable : Any]?'

在此处输入图像描述

i am getting this error when trying to pass model in userInfo params

It's a dictionary, you need a key. You can then pull it out on the receiver by key, or pull the first item from the dictionary.

userInfo: ["model":self.userModel]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM