如何将以下字符串转换为URLDecode并分配给UILabel-目标c

时间:2018-08-21 06:43:27

标签: objective-c iphone uilabel

我想知道如何将以下字符串转换为URL解码字符串并将其分配给UI标签。

%3Col%3E%0D%0D%09%3Cli%3E%0D%0D%09%09The+Gift+Card+shall+be+redeemable+at+3M+Car+Care+outlets.%3C%2Fli%3E%0D%0D%09%3Cli%3E%0D%0D%09%09Customer+can+visit+www.carcarestores.3mindia.in%2FAppointent.aspx+or+call+1800-300-+22-300+to+book+an+appointment+and+redeem+the+Gift+Card+at+the+outlets.%3C%2Fli%3E%0D%0D%09%3Cli%3E%0D%0D%09%09The+Gift+Card+is+valid+for+a+period+of+12+months%28365+days%29+from+the+date+of+activation+and+shallexpire+if+not+availed+within+the+validity+period.%3C%2Fli%3E%0D%0D%09%3Cli%3E%0D%0D%09%09This+card+can+be+redeemed+for+any+treatment+or+product+depending+on+the+value+loaded+onto+the+card+apart+from+flexi+Car+packages.%3C%2Fli%3E%0D%0D%09%3Cli%3E%0D%0D%09%09Gift+Cards+cab+also+be+reedemed+partially%2C+as+many+times+as+user+wishes+to%2C+till+its+balance+is+consumed+or+the+Gift+Card+expires.%3C%2Fli%3E%0D%0D%09%3Cli%3E%0D%0D%09%09Gift+Card+is+neither+transferable+nor+can+be+exchanged+for+Cash%2FCheque+or+any+equivalent+either+in+part+of+in+full.%3C%2Fli%3E%0D%0D%09%3Cli%3E%0D%0D%09%09If+the+Gift+Card+is+stolen+or+lost%2C+neither+will+a+new+Gift+Card+be+issued+nor+will+the+money+be+reimbursed.%3C%2Fli%3E%0D%0D%3C%2Fol%3E%0D%0D%3Cp%3E%0D%0D%09%26nbsp%3B%3C%2Fp%3E

1 个答案:

答案 0 :(得分:0)

您可以使用removingPercentEncoding来解码您的字符串

49