I am setting three line string title to UIButton. I am using iOS 10. But I can't set it.
What I have tried.
Set the UIButton title Label with the Below String.
String = "Before\n-\n12:00"
.
but the \n
doesn't break the String to new line.
and also set the UIButton property to WordWrap
.
When I set
noOfLine
toTitleLabel
ofUIButton
but noOfLine property isnot display
.
ScreenShot :
See the ScreenShot :
the First one is UIButton
but it is not display well as I accepted.
the Second one is UILabel
which is display well as I expected.
I want to set it like second one.
Is there any way to set it like Second One.
Any Help be Appreciated.