NSString *StrUrl=[[NSString alloc] initWithFormat:@"%@",yourURLstring];
NSData *_PicData=[[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:StrUrl] ];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsPath =[NSString stringWithFormat:@"%@/%@",[paths objectAtIndex:0],YourPhotoName.Ext];
[_PicData writeToFile:documentsPath atomically:YES];
Loading