xcode4.5 - I have assigned some text to lable, want to remove that \n from text and i need to dispaly text should be in multiple lines -
now in lable text like:
a 28year old lady came obstetric clinic consequevces\n
\n shoul doctor do?\n
i want dipaly text should in lable like:
a 28year old lady came obstetric clinic consequevces
what shoul doctor do?
you should this...
nsstring *tempstring = @"a 28year old lady came obstetric clinic consequevces\n \n shoul doctor do?\n want dipaly text should in lable like: 28year old lady came obstetric clinic consequevces shoul doctor do?"; nsstring *string = [tempstring stringbyreplacingoccurrencesofstring:@"\\n" withstring:@""];
Comments
Post a Comment