created UIBarButtonItem
added Power Image to it.
barBtnPower = new UIBarButtonItem (UIImage.FromBundle ("Images/Power@2x.png")
, UIBarButtonItemStyle.Plain
, (sender, args) => {
});
button added to navigation Item on right side.
this.NavigationItem.SetRightBarButtonItem (barBtn_Logout, true);
Issue is Power@2x.png is in green colour. but after run the application its shows in blue.
Can any one advice what i have done wrong here.
Use the always original rendering mode, if you don't want the navigation bar's tintColor property to effect your button's color.
barBtnPower = new UIBarButtonItem (UIImage.FromBundle("Images/Power@2x.png").imageWithRenderingMode(.AlwaysOriginal)
, UIBarButtonItemStyle.Plain
, (sender, args) => {});