Developer Developer - 16 days ago 6
iOS Question

WKInterfaceButton multiple line title

How to show 3 to four line title in WKInterfaceButton. I had set size to fit content but it is showing maximum 2 line title in Button.

Answer

So you want multiline actionable text in your storyboard.

For now we can not make the multiline title of the WKInterfaceButton. But there is another work around that is helpful and recommended by Apple too.

Change the Content type of the WKInterfaceButton from Text to Group.

Make sure its height is "Size To Fit Content".

Now Add a WKInterfaceLabel in this Group. Make this Label's proper IBOutlet Connection. Put your Title actionable Text in this Label. Make sure Label's height is "Size To Fit Content" too.

Comments