Hide UIButton title when using autolayout
Hey I'm learning developing in XCode with Storyboard and I have an
UIButton with custom image. Before I developed without Autolayout but then
I read about it and decided to try it. My problem is that the button has a
custom image and it shouldn't display a title, only the image. When I
don't use Autolayout everything works just fine (only image is displayed).
But when I turn Autolayout on, it resizes my picture and pushes it to left
and shows button title next to the image. How can I display only the image
using Autolayout? Has this something to do with intrinsic content size??
No comments:
Post a Comment