I am using the following line of code to create a dictionary which stores a url and the time when it was accessed::
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys: urlString, [formatter stringFromDate:[NSDate date]], nil];
But,however, I am getting the following error :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSDictionary dictionaryWithObjectsAndKeys:]: second object of each pair must be non-nil. Or, did you forget to nil-terminate your parameter list?'
Can someone help me to sort it out ?? I am stuck at this error. Thanks and regards.