我想念什么?
var notifications = [Int, UILocalNotification]()
为什么这会给我错误:
"Type of expression is ambiguous without more context"
最佳答案
如果您想要字典,那么您的语法是错误的,应该是:
var notifications = [Int : UILocalNotification]()
关于ios - UILocalNotification在Dictionary中标记为模糊的,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/36328456/