My button disappears when trying to change his image

Hello, im new with Xamarin iOS and it may be a silly question, but I'm trying to change button image with

partial void BtnIntermediate_TouchUpInside(UIButton sender)
{
BtnIntermediate.SetBackgroundImage(UIImage.FromFile("IntermediateGreen.png"), UIControlState.Normal);
}

But whenever i click on the button the button just disappers am i doing something wrong? My build action is on compile not sure if that may be related. Thank you!

Answers

  • andreydimitroandreydimitro Member ✭✭

    OK It's working i just had to show image path.... One more thing should i put all of my images in the resources folder?

Sign In or Register to comment.