I am coding in swift. I have written a protocol
@objc protocol ServerDelegate {
optional func onDownloadDataComplete (downloadedData data : [Dictionary<String,Any>],result : ResultType,error : String)
}
First I received "Method cannot be a member of an @objc protocol because the type of the parameter 2 cannot be represented in Objective-C" for my enum but I fixed it by adding @objc. Now I am receiving this for Array of Dictionary. How to fix it?
Anycannot be represented in obj-c. What are you using your dictionary for? I highly doubt you're not able to be any more type specific thanAny. - HamishAnyObjectand useNSNumberorNSValuefor any values? - JAL