add tab or spaces and newline in html string iOS Swift

Solution:

If you are using \r then it will remove the unwanted spaces in your string.

If you want to add spaces in your string better go ahead with spaces you can add manually in the string.

If you want to add new line then add \n inside your string. 

Comments

Popular posts from this blog

How to blink a button iOS swift?

Convert NsNumber, NSDate to String in iOS Swift

Parse the value from string value iOS swift