Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
I’ve a customized UINavigationController
and the next code in that controller to supply a customized again button picture:
public override void PushViewController(UIViewController viewController, bool animated)
{
base.PushViewController(viewController, animated);
viewController.NavigationItem.BackButtonDisplayMode = UINavigationItemBackButtonDisplayMode.Minimal;
}
public override void ViewWillAppear(bool animated)
{
base.ViewWillAppear(animated);
SetNeedsStatusBarAppearanceUpdate();
var uiNavigationBarAppearance = new UINavigationBarAppearance();
// ...
// configure frequent UINavigationBarAppearance properties
// ...
var img = UIImage.FromBundle("again");
uiNavigationBarAppearance.SetBackIndicatorImage(img, img);
NavigationBar.StandardAppearance = uiNavigationBarAppearance;
}
This works superb, however I seen the again picture (which is a PDF asset) is just too small in comparison with NavigationItem.RightBarButtonItems
. The truth is, if I take advantage of the identical PDF as a RightBarButtonItem
, will probably be greater.
Is it attainable to configure the scale of the again button picture so it seems regular?
P.S. Minimal supported OS model is 15.4.
[ad_2]