Formatted strings in IOS


#1

In my app, i have 6 buttons with formatted strings in. Inside each formatted string is 2 spans.

The first span contains an icon code (ie &#xf100) followed by a breakline code (&#x000a).
The second span contains text based on the icon displayed.

On android, this works as expected.
On IOS, only the icon is displayed.

Is there anything you have to do on ios to get a breakline within a span?


#2

Not sure if its the best fix but adding textWrap="true" to the button tag seems to have fixed it.

Another fix was also posted that works

surdu

You can set the white-space:normal; property for the button in CSS :wink:


#3

You can set the white-space:normal; property for the button in CSS :wink: