Iam working on app and when i debug my code it is showing the following error.
-(IBAction)addSelected:(id)sender
{
NSString* emptyStr = @\"\";
NSDictio
NSDictionary* traits = [NSDictionary dictionaryWithObjectsAndKeys:
self.walletName.text, @"alias",
self.abc.text, @"abc",
self.field.text, @"field",
@"name", @"Type", nil];
The problem is form @"name,".
@"name," @"Type",
should be @"name", @"Type",
The ,
is inside the string.
In my case i was doing this:
NSDate *today = [NSDate date];
NSTimeInterval currentTime = [today timeIntervalSince1970];
NSMutableDictionary *dictExpiryDate =
[NSMutableDictionary dictionaryWithObjectsAndKeys:currentTime, KEY_4_VALUE_OF_EXPIRY_DATE, nil];
The problem here is currentTime, i replaced currentTime as followed:
[NSNumber numberWithDouble:currentTime]
This solved my issues.