Commits

Anonymous committed 5af5644

Replace UIAlertView with WBErrorNotice.

  • Participants
  • Parent commits 144045b

Comments (0)

Files changed (2)

File Camerang.xcodeproj/project.pbxproj

 		86D7D0D8173AF8F900E2A2D1 /* Default-Landscape@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 86D7D0D6173AF8F900E2A2D1 /* Default-Landscape@2x.png */; };
 		86D7D0DB173AF96300E2A2D1 /* Default-Portrait.png in Resources */ = {isa = PBXBuildFile; fileRef = 86D7D0D9173AF96200E2A2D1 /* Default-Portrait.png */; };
 		86D7D0DC173AF96300E2A2D1 /* Default-Landscape.png in Resources */ = {isa = PBXBuildFile; fileRef = 86D7D0DA173AF96300E2A2D1 /* Default-Landscape.png */; };
+		86D7D0DF173AFBFD00E2A2D1 /* UILabel+WBExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 86D7D0DE173AFBFD00E2A2D1 /* UILabel+WBExtensions.m */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXFileReference section */
 		86D7D0D6173AF8F900E2A2D1 /* Default-Landscape@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Landscape@2x.png"; sourceTree = "<group>"; };
 		86D7D0D9173AF96200E2A2D1 /* Default-Portrait.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Portrait.png"; sourceTree = "<group>"; };
 		86D7D0DA173AF96300E2A2D1 /* Default-Landscape.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-Landscape.png"; sourceTree = "<group>"; };
+		86D7D0DD173AFBFD00E2A2D1 /* UILabel+WBExtensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UILabel+WBExtensions.h"; path = "vendor/NoticeView/NoticeView/WBNoticeView/UILabel+WBExtensions.h"; sourceTree = "<group>"; };
+		86D7D0DE173AFBFD00E2A2D1 /* UILabel+WBExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UILabel+WBExtensions.m"; path = "vendor/NoticeView/NoticeView/WBNoticeView/UILabel+WBExtensions.m"; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
 		86D7D0B11739A87700E2A2D1 /* NoticeView */ = {
 			isa = PBXGroup;
 			children = (
+				86D7D0DD173AFBFD00E2A2D1 /* UILabel+WBExtensions.h */,
+				86D7D0DE173AFBFD00E2A2D1 /* UILabel+WBExtensions.m */,
 				86D7D0B81739A8CB00E2A2D1 /* WBBlueGradientView.h */,
 				86D7D0B91739A8CB00E2A2D1 /* WBBlueGradientView.m */,
 				86D7D0BF1739AA3300E2A2D1 /* WBErrorNoticeView.h */,
 				86D7D0BA1739A8CB00E2A2D1 /* WBBlueGradientView.m in Sources */,
 				86D7D0C11739AA3300E2A2D1 /* WBErrorNoticeView.m in Sources */,
 				86D7D0C41739AA4700E2A2D1 /* WBRedGradientView.m in Sources */,
+				86D7D0DF173AFBFD00E2A2D1 /* UILabel+WBExtensions.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};

File vendor/RailRoad/RRCameraCaptureSession.m

 //
 
 #import "RRCameraCaptureSession.h"
+#import "WBErrorNoticeView.h"
 #import <AVFoundation/AVFoundation.h>
 
 @interface RRCameraCaptureSession () <AVCaptureVideoDataOutputSampleBufferDelegate>
                                                                             error:&error];
         if (input == nil)
         {
-            UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error"
-                                                                message:@"Unable to start camera session. Unavailable input device."
-                                                               delegate:nil
-                                                      cancelButtonTitle:@"OK" otherButtonTitles:nil];
-            [alertView show];
-            [alertView release];
+            WBErrorNoticeView* notice = [WBErrorNoticeView
+                                         errorNoticeInView:[UIApplication sharedApplication].keyWindow
+                                         title:NSLocalizedString(@"Error", nil)
+                                         message:@"Unable to start camera session. Unavailable input device."];
+            notice.delay = INT64_MAX;
+            [notice show];
         }
         else
         {