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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -