I started developing a project in ios-5, I have created database in my application.
Here I create bdgDBArr in appDelegate that contains values like 93,55,68,95,45...
I want to create string like badge_id= @"93,55,68,95,45"
here appDelegate.sb is NSString
type and sb1 is NSMutableString
type
This is my code
NSMutableString *sb1 = [[NSMutableString alloc] init];
if (![appDelegate.bdgDBArr count]==0) {
for (int i=0; i < [appDelegate.bdgDBArr count]; i++) {
if (!i==0) {
[sb1 appendString:@","];
}
[sb1 appendString:[[appDelegate.bdgDBArr objectAtIndex:i] valueForKey:@"key1"]];
}
}
else {
[sb1 appendString:@""];
}
appDelegate.sb = sb1;
NSLog(@"appDelegate.sb showSB===%@",appDelegate.sb);
[sb1 release]; //error wait_fences: failed to receive reply: 10004003
sb1 = nil;
This code is working perfectly and get the output 93,55,68,45 but at the same time I got this error in NSLog
wait_fences: failed to receive reply: 10004003
Any ideas?