0

I have one view and one button. view is equal height and width to superview and button height and width will increase with font size according to device size by auto layout constraints

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Shrikant Tanwade
  • 1,391
  • 12
  • 21
  • what is your question here? – rishi Sep 20 '17 at 11:55
  • You cannot do this solely with constraints and auto-layout. You need to set the font scaling properties on the `.titleLabel` of the button via code. Lots of answers, discussions and examples out there - for example: https://stackoverflow.com/questions/32561435/adjust-font-size-of-text-to-fit-in-uibutton – DonMag Sep 20 '17 at 14:56

0 Answers0