how to disable a navigation bar button item in iOS

前端 未结 16 1286
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 09:54

I have created a navigation controller. In the second view (which is pushed), I have some webservice call and placing a overlay view and setting

self.view.use

16条回答
  •  被撕碎了的回忆
    2021-01-01 10:24

    var menuBtn = new UIButton(UIButtonType.Custom);
    menuBtn.Frame = new CGRect(x: 0.0, y: 0.0, width: 20, height: 20);
    menuBtn.SetImage(new UIImage("filter"), UIControlState.Normal);
    
    menuBtn.Alpha = 0.05f;   //to set the Alpha
    
    menuBtn.Enabled = false;
    

    tested on Mvvmcross Xamarin.iOS only

提交回复
热议问题