can't creating plist file in document folder
<p>I have write code like this in <code>Viewdidload</code> method. But it don't create file <code>.plist</code>.</p>

<p>I don't know  whether code is wi8 or wrong. And where i have to write?</p>

<pre><code>NSError *error;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory =  [paths objectAtIndex:0]; //2
NSString *path = [documentsDirectory stringByAppendingPathComponent:@"data1.plist"]; //3
NSFileManager *fileManager = [NSFileManager defaultManager];

if ( ![fileManager fileExistsAtPath:path] ) {
    NSString *pathToSettingsInBundle = [[NSBundle mainBundle] 
    pathForResource:@"data1" ofType:@"plist"];
}
</code></pre>
