ios - UIActivityViewController not passing new line characters to some activities -


i using following code set uiactivityviewcontroller:

nsarray *activityitems = [nsarray arraywithobjects:[self textmessagetoshare], nil];  uiactivityviewcontroller *activityviewcontroller = [[uiactivityviewcontroller alloc] initwithactivityitems:activityitems applicationactivities:nil];         [activityviewcontroller setcompletionhandler:^(nsstring *activitytype, bool completed) {             if (completed) {                 [self sendfeedbackwithindexpath:indexpath andliketype:100 andcell:nil];             }         }]; [self.navigationcontroller presentviewcontroller:activityviewcontroller                                                 animated:yes                                               completion:^{                                                   // ...                                               }]; 

issue when copy message or post facebook or twitter or email or gmail app or default messages app, new line characters in [self textmessagetoshare] maintained. however, if share other activities whatsapp or viber - new line characters removed, , whole message sent 1 single line.

whereas, if share text through ios default notes app, new line characters maintained when shared these apps. how notes app storing new line characters? using \n new line character.

for life unable find reason. can help?

i able make work converting newline characters "<br/>":

_mydatastring=  self.textview.text; _mydatastring= [_mydatastring  stringbyreplacingoccurrencesofstring:@"\n" withstring:@"<br/>"]; 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -