Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: Z8TITLE)'

Solution:

If you are tried to set declare the dictionary and then set the values on run time is raised the problem.So if your values will be changable at runtime then must use NSMutableDictionary then assign the values to that.

Comments

Popular posts from this blog

Convert NsNumber, NSDate to String in iOS Swift

store cgpoint in userdefaults iOS swift