Hey Xamarin.iOS, having a bit of a problem here. I have a custom icon bar at the bottom of my app that has 4 different buttons on it. As the title says, I tried to create a custom UIButton from the same type; the problem I'm having is that my image comes out pixelated when rendered. I have a 27x27 icon that is crisp and clear on my coworker's sister Android app, but when I put that same image into my app, it's pixelated and looks as if there's no anti aliasing.
My 27x27 image is contained by the button, whose .Frame is like so:
new CGRect(80, View.Frame.Bottom, 27, 27). Why is it pixelated? I've attempted to set the button's .VerticalAlignment and .HorizontalAlignment to
UIControlContentHorizontalAlignment.Fill to no avail. I saw someone answer that instead of doing a button, try UIImageView with a gesture recognizer and UserInteractionEnabled turned on. I tried this, but the same thing happened: pixelated/jagged image.
Does anyone know why this would be happening?