partial void CameraShutterDidPress(UIKit.UIButton sender) { if (!captureSession.Running) { return; } UserInterfaceEnabled = false; PerformBrackedCaptureWithCompletionHandler((image) => { imageViewController = new ImageViewController(image) { ImageViewControllerDidFinish = ImageViewControllerDidFinish, Title = "Bracket Viewer Title" }; navigationImageViewController = new UINavigationController(imageViewController) { ModalTransitionStyle = UIModalTransitionStyle.CoverVertical }; PresentViewController(navigationImageViewController, true, null); }); }
private void ImageViewControllerDidFinish(ImageViewController controller) { controller.DismissViewController (true, () => { UserInterfaceEnabled = true; }); }
private void ImageViewControllerDidFinish(ImageViewController controller) { controller.DismissViewController(true, () => { UserInterfaceEnabled = true; }); }
partial void CameraShutterDidPress(UIKit.UIButton sender) { if (!captureSession.Running) return; UserInterfaceEnabled = false; PerformBrackedCaptureWithCompletionHandler ((image) => { imageViewController = new ImageViewController (image) { ImageViewControllerDidFinish = ImageViewControllerDidFinish, Title = "Bracket Viewer Title" }; navigationImageViewController = new UINavigationController (imageViewController) { ModalTransitionStyle = UIModalTransitionStyle.CoverVertical }; PresentViewController (navigationImageViewController, true, null); }); }