public void ShowPicture(string link) { UIStoryboard storyboard = UIStoryboard.FromName("Main", null); ImageViewController imageViewController = storyboard.InstantiateViewController("ImageViewController") as ImageViewController; if (imageViewController != null) { imageViewController.SetPicture(link); PresentModalViewController(imageViewController, true); } }
public void ShowImage(string destPath) { BeginInvokeOnMainThread(() => { var imageController = new ImageViewController(destPath); var navController = new UINavigationController(imageController); navController.ModalPresentationStyle = UIModalPresentationStyle.FormSheet; PresentViewController(navController, true, () => {}); }); }
public void ShowImage (string destPath) { BeginInvokeOnMainThread (() => { var imageController = new ImageViewController (destPath); var navController = new UINavigationController (imageController); navController.ModalPresentationStyle = UIModalPresentationStyle.FormSheet; PresentViewController (navController, true, () => {}); }); }