-2

现在在我的标签文本中,例如:

一位 28 岁的女士因后遗症来到产科诊所\n

\n 医生应该怎么做?\n

我想将文本放在标签中,例如:

一位 28 岁的女士来到产科诊所寻求后果

医生应该怎么做?

4

1 回答 1

0

你应该做这个...

NSString *tempString = @"a 28year old lady came to an obstetric clinic for an consequevces\n \n what shoul the doctor do?\n i want to dipaly text should be in lable like: a 28year old lady came to an obstetric clinic for an consequevces what shoul the doctor do?";
NSString *string = [tempString stringByReplacingOccurrencesOfString:@"\\n" withString:@""];
于 2013-05-22T04:44:28.330 回答