NSString *path = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"favorites.plist"];
BOOL canWrite = [arr writeToFile:path atomically:YES];// arr is an NSArray
I got canWrite = NO. Did some research which says that the main bundle is readonly. Is there a way to make the mainbundle files readwrite?
Thanks,