本文整理汇总了C#中UINavigationController.DidMoveToParentViewController方法的典型用法代码示例。如果您正苦于以下问题:C# UINavigationController.DidMoveToParentViewController方法的具体用法?C# UINavigationController.DidMoveToParentViewController怎么用?C# UINavigationController.DidMoveToParentViewController使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UINavigationController
的用法示例。
在下文中一共展示了UINavigationController.DidMoveToParentViewController方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetupNavigationController
private void SetupNavigationController()
{
if (_albumsViewController == null) {
_albumsViewController = new GMAlbumsViewController ();
}
_navigationController = new UINavigationController (_albumsViewController);
_navigationController.Delegate = new GMNavigationControllerDelegate ();
_navigationController.NavigationBar.Translucent = true;
_navigationController.View.Frame = View.Frame;
_navigationController.WillMoveToParentViewController (this);
View.AddSubview (_navigationController.View);
AddChildViewController (_navigationController);
_navigationController.DidMoveToParentViewController (this);
}
示例2: ViewDidLoad
public override void ViewDidLoad()
{
base.ViewDidLoad ();
tableView = new UITableView(new RectangleF(0,0,320, View.Bounds.Size.Height), UITableViewStyle.Plain);
tableView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;
tableView.BackgroundColor = UIColor.FromRGBA(50f/255f,57f/255f,74f/255f,1f);
tableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
TestTableSource tableSource = new TestTableSource();
tableSource.RowSelectedEvent += HandleRowSelectedEvent;
tableView.Source = tableSource;
View.AddSubview(tableView);
ConfigureViewController(initViewController);
slideNavigationController = new UINavigationController(initViewController);
LWSlideNavigationControllerDelegate navDelegate = new LWSlideNavigationControllerDelegate();
navDelegate.DidShowViewControllerEvent += HandleDidShowViewControllerEvent;
slideNavigationController.Delegate = navDelegate;
slideNavigationController.View.Layer.ShadowColor = UIColor.Black.CGColor;
slideNavigationController.View.Layer.ShadowOffset = new SizeF(0,0);
slideNavigationController.View.Layer.ShadowRadius = 4;
slideNavigationController.View.Layer.ShadowOpacity = 0.75f;
slideNavigationController.WillMoveToParentViewController(this);
AddChildViewController(slideNavigationController);
View.AddSubview(slideNavigationController.View);
slideNavigationController.DidMoveToParentViewController(this);
UIBezierPath path = UIBezierPath.FromRoundedRect(slideNavigationController.View.Bounds, 4.0f);
slideNavigationController.View.Layer.ShadowPath = path.CGPath;
UIPanGestureRecognizer panRecogniser = new UIPanGestureRecognizer(HandlePan);
slideNavigationController.NavigationBar.AddGestureRecognizer(panRecogniser);
slideNavigationController.View.AddGestureRecognizer(panRecogniser);
slideInTapGestureRecognizer = new UITapGestureRecognizer(HandleSlideInTap);
slideInTapGestureRecognizer.Enabled = false;
slideNavigationController.View.AddGestureRecognizer(slideInTapGestureRecognizer);
}