How is it possible to convert an Object instance to NSObject one?
I've created a NSDictionary from
NSDictionary.FromObjectAndKey();
This method wants an NSObject but I have custom object to pass in:
int key = 2341;
var val = new MyClass();
NSDictionary.FromObjectAndKey(val, key); // obviously it does not work!!
How to fix this? Thank you in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…