Can someone please tell me why I crash when I use NSInterger, But if I use it as a String, it does not crash. What am I doing wrong please???
I am in the process of converting the App using CoreData and Swift. But for right now, I need to make a small modification and I simply can not understand why it is crashing using NSInterger.
@hcri50 The above code crashes because NSInteger is a value type and you can only add reference types like objects or class instances as values to NSDictionary. You should convert NSInteger to NSNumber in this case:
Thank you very much and that did the trick. Sorry for taking so long in getting back for I had to deal with a death within the family.
I have one last item and I will use a different post for this one.
THANK YOU AGAIN.