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
Post a Comment