From dc90885865cd7c8d8716d1ebb995f252e4197cf0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E4=BA=91=E9=9C=84?= <chinacgcgcg@163.com>
Date: Thu, 28 Jul 2016 20:57:05 +0800
Subject: [PATCH] debug

---
 Lighting/Class/UserViewController.m | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Lighting/Class/UserViewController.m b/Lighting/Class/UserViewController.m
index a1d3e03..4b9eee7 100644
--- a/Lighting/Class/UserViewController.m
+++ b/Lighting/Class/UserViewController.m
@@ -91,6 +91,7 @@
         }
         else
         {
+            [DeviceDirectionManager instance].isHorizontal=NO;
             [self ErrorMBProgressView:@"相机无法使用"];
         }
     }]];
@@ -103,10 +104,12 @@
         }
         else
         {
+            [DeviceDirectionManager instance].isHorizontal=NO;
             [self ErrorMBProgressView:@"相册无法打开"];
         }
     }]];
     [alertView addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
+        [DeviceDirectionManager instance].isHorizontal=NO;
         [alertView dismissViewControllerAnimated:YES completion:nil];
     }]];
     [self presentViewController:alertView animated:YES completion:nil];
-- 
2.18.1