|
|
@@ -110,7 +110,8 @@
|
|
|
|
|
|
- (void)showPhotoList {
|
|
|
if (!self.photos.count) {
|
|
|
- [RAUtils message_alert:@"There is no photo" title:@"Note" controller:self];
|
|
|
+// [RAUtils message_alert:@"There is no photo" title:@"Note" controller:self];
|
|
|
+ [self showCamera];
|
|
|
return;
|
|
|
}
|
|
|
PhotoListViewController *photoListVC = (PhotoListViewController *)[self viewControllerInStoryboard:@"PhotoList" withId:@"PhotoListViewController"];
|
|
|
@@ -282,9 +283,9 @@
|
|
|
|
|
|
NSDate * date = [NSDate date];
|
|
|
NSDateFormatter * dateFormatter = [[NSDateFormatter alloc] init];
|
|
|
- [dateFormatter setDateFormat:@"YYYY-MM-dd-HH-mm-ss"];
|
|
|
+ [dateFormatter setDateFormat:@"YYYYMMddHHmmss"];
|
|
|
NSString * name = [[dateFormatter stringFromDate:date] stringByAppendingPathExtension:@"png"];
|
|
|
-
|
|
|
+ name=[self.barcodeTitle stringByAppendingString:name];
|
|
|
// NSString *name = [[NSUUID UUID] UUIDString];
|
|
|
// name = [name stringByAppendingPathExtension:@"png"];
|
|
|
NSString *path = [dir stringByAppendingPathComponent:name];
|