StoreSearch - Pop up close button issue

On page 142 (PDF), I just changed the size of the close button’s tap area to 44 x 44 points. But because of the extra space, now the button image moved slightly away from the corner and does not look as good. Is there a way to keep the close button image closer to the corner but still have Apple’s recommended 44 x 44 points tap area?

Hi @salanthonyc

You can use ‘imageEdgeInsets’ property of your UIImage instance. Something like this would work:
yourButton.imageEdgeInsets = UIEdgeInsetsMake(0, 10, 10, 0) // parameters are: top, left, bottom, right

Nikita

Where would I put that?

I figured it out. I changed the image insets within storyboard. Thanks.