UIButton won't go to Aspect Fit in iPhone

后端 未结 21 2189
小鲜肉
小鲜肉 2020-12-23 02:47

I have a couple UIButtons, and in IB they\'re set to Aspect Fit, but for some reason they\'re always stretching. Is there something else you have to set? I tried all the d

21条回答
  •  暖寄归人
    2020-12-23 03:19

    I had the same issue, but I couldn't get it to work (perhaps it's a bug with the SDK).

    Eventually, as a workaround, I placed a UIImageView behind my button and set the options I wanted on that, then simply placed a blank UIButton on top of it.

提交回复
热议问题