error writing to plist
- by Najeebullah Shah
[array writeToFile:[documentsDirectory stringByAppendingPathComponent:@"data.plist" atomically:YES];
this line gives error that method -stringByAppendingPathComponent not found. whats the issue
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];…