【发布时间】:2017-05-19 12:08:28
【问题描述】:
我在 NavigationItem 下面设置了 LeftBarButton。
代码:
UIButton leftBtn = new UIButton();
leftBtn.Frame = new CoreGraphics.CGRect(0, 14, 30, 30);
leftBtn.SetImage(UIImage.FromBundle("cancel_white_icon"), UIControlState.Normal);
leftBtn.TintColor = GargiColor.WhiteColor();
UIBarButtonItem barBtnLeft = new UIBarButtonItem();
barBtnLeft.CustomView = leftBtn;
barBtnLeft.TintColor = GargiColor.WhiteColor();
NavigationItem.SetLeftBarButtonItem(barBtnLeft, true);
编辑:
我的期望:
取消按钮在左侧有更多空间。如何将其设置为 LeftSide 作为后退按钮。
我的要求输出如下:
【问题讨论】:
标签: ios xamarin xamarin.ios back-button uinavigationitem