本文整理汇总了C#中UIImagePickerController.PrefersStatusBarHidden方法的典型用法代码示例。如果您正苦于以下问题:C# UIImagePickerController.PrefersStatusBarHidden方法的具体用法?C# UIImagePickerController.PrefersStatusBarHidden怎么用?C# UIImagePickerController.PrefersStatusBarHidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIImagePickerController
的用法示例。
在下文中一共展示了UIImagePickerController.PrefersStatusBarHidden方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ViewDidAppear
public override void ViewDidAppear(bool animated)
{
base.ViewDidAppear(animated);
// Setup the UIImagePickerController
m_picker = new UIImagePickerController();
m_picker.SourceType = UIImagePickerControllerSourceType.Camera;
m_picker.ModalPresentationStyle = UIModalPresentationStyle.CurrentContext;
m_picker.PrefersStatusBarHidden();
m_picker.ShowsCameraControls = false;
m_picker.Delegate = new ImagePickerDelegate();
// Setup the "OverlayView", basically the custom interface of the camera.
var nibObjects = NSBundle.MainBundle.LoadNib("OverlayView", this, null);
overlayView = (UIView)Runtime.GetNSObject(nibObjects.ValueAt(0));
overlayView.Frame = m_picker.CameraOverlayView.Frame;
m_picker.CameraOverlayView = overlayView;
PresentViewController (m_picker, false, null);
}
开发者ID:GiusepeCasagrande,项目名称:XamarinSimpleCameraSample,代码行数:20,代码来源:SimpleCameraAppViewController.cs