iphone开发中的拍照有关问题

iphone开发中的拍照问题
iphone开发中,在真机调试,调用真机的摄像头拍照,怎样设置拍得得照片得名称如“1111.jpg”,并且拍得的后一张照片始终覆盖前一张照片?
------解决方案--------------------
已解决

代码
//保存图片到沙盒中
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
    NSString *filePath = [[paths objectAtIndex:0] stringByAppendingPathComponent:[NSString stringWithFormat:@"1111.jpg"]];// 保存文件的名称
    BOOL result;
    result = [UIImagePNGRepresentation(images)writeToFile: filePath  atomically:YES]; // 保存成功会返回YES