nsstringencoding - How do I remove all page formatting from NSString -


I have a NSMutableString * (theBigString) that contains the text loaded from an online file. I have bugstrings in the local file for the iPad I am writing on it and after that I am emailing it as an attachment.

  [thebigstring appendstring: [[nssting alloc] initWithData: data encoding: NSUTF8StringEncoding]];  

Despite my best efforts using the following lines of code, even when I open an email attachment, I still present several lines of text instead of a long line of text What I hope (and it requires my app to work)

  [doublestring string barrelling ocurrenceoffstring: @ "\\ s +" with string: @ ""]; [The Bigstrings string bayer replaying occasions offstring: @ "\ n" string: @ ""]; [The Bigstrings string by replacing occurence offstring: @ "\ r" with string: @ ""]; [The bigstrings string bayer recieving ocurrenceoffstring: @ "\ r \ n" string: @ ""];  

If I open the text file and see the formatting, then it still shows some new paragraph symbols.

Do any other new type of character "\ n" or "\ r" If you do not care too much about efficiency, you can separate the string in an array instead of just new characters and add it again. Empty Wire

  NSArray * stringComponents = [Bestsaris insets separate from the BigString components: [NSCharacterSet newlineCharacterSet]]; The bugstring = [string component components] joddbins Ri straight: @ ""];  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -