【发布时间】:2016-05-01 07:19:54
【问题描述】:
我的根视图控制器上有一个容器视图,其自动布局约束为
我在容器视图中添加了一个视图控制器
AddChildViewController(toViewController);
ContainerView.AddSubview(toViewController.View);
toViewController.View.LayoutIfNeeded();
UIView.Animate(0.5, () =>
{
toViewController.View.Frame = new CoreGraphics.CGRect(0, 0, ContainerView.Frame.Width, ContainerView.Frame.Height);
toViewController.View.LayoutIfNeeded();
}, () =>
{
toViewController.DidMoveToParentViewController(this);
});
顺便说一句,“标签”下方是一个 CollectionView。 我想发生的事情是这样的。
上图的根视图控制器是UITableViewController,完美的展示了它背后有一个内容。但是在容器视图上添加的 UICollection 视图的情况下。它只是这样显示。
任何信息将不胜感激。谢谢。
【问题讨论】:
标签: xamarin xamarin.ios autolayout interface-builder