Xamarin.ios 重新定位视图

//旋转手机重新定位视图
/// <summary>
/// 重新定位视图
/// </summary>
/// <param name="toInterfaceOrientation">To interface orientation.</param>
/// <param name="duration">Duration.</param>
public override void WillRotate(UIInterfaceOrientation toInterfaceOrientation, double duration)
{
UIInterfaceOrientation destOrientation = toInterfaceOrientation;
//判断选择方向
if (destOrientation == UIInterfaceOrientation.LandscapeLeft | destOrientation == UIInterfaceOrientation.LandscapeRight)
{
vv.Frame = new RectangleF(, , , );
}
else { vv.Frame = new RectangleF(, , ,);
}
}
上一篇:Visual Studio中没有为此解决方案配置选中要生成的项目


下一篇:java中的stream的Map收集器操作