New Line Command (\n) Not Working With Firebase Firestore Database Strings

后端 未结 6 1002
天涯浪人
天涯浪人 2020-12-06 01:36

I\'m making an app with Swift and I\'m using Firebase Firestore. Firestore is a database that has some strings that I put into a UILabel. With some of my stings

6条回答
  •  悲&欢浪女
    2020-12-06 02:35

    Firestore add this type----Line one\nline two\nline three

    get Sting, replace and show with TextView

    String sura=modellist.get(position).getSura().replace( "\n", "\n");

    Working..

提交回复
热议问题