iphone - Adding items to string not showing characters -


    (nsstring *item in items) {         nsstring *ref = [item stringbymatching:myregex1 capture:2];         nsstring *value = [item stringbymatching:myregex1 capture:3];         nslog(@"%@ : %@", ref, value);         allorderitems = [allorderitems stringbyappendingformat:(@"%@: %@ \r\n", ref, value)];             } 

the allorderitems not showing : or new lines(\r\n) ref & value strings ?

please

thanks

remove brackets around format:

allorderitems = [allorderitems stringbyappendingformat:@"%@: %@ \r\n", ref, value];        

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -