UIButton different alignment for title and image
问题 Hello I am creating UIButton which is displaying image and title at the same time. I want title and image to be both centred, button to be above image. Problem is that because of localisation of string from button, string length is changing, and alignment from UIStoryboard combined with edge insets is not working as I want it to work. Can someone help me and point me in the right direction? 回答1: set these two. 1. set Align controls of UIButton set Image and Text Inset of UIButton 回答2: The