Disabling button image/backgroundImage scaling
Hello,
Is there a way to disable image scaling?
Say, my image is 32x32, but the button is 48x48 for bigger hit target. How do I make sure the image doesn't scale and is centered in the button?
Do I really have to make my image bigger by adding to its borders??
3 Answers
-
I have the same question. Could someone help?
-
I am new to this also, but as a suggestion, you could have a button that is 48x48 that contains an imageView sized to 32x32. That way you can set the hit target to be the outer enclosure instead of the imageView
-
Still no answer? This is very sad to see.