HTML tags in ojective c programming
Posted
by
user1661826
on Stack Overflow
See other posts from Stack Overflow
or by user1661826
Published on 2012-09-11T21:36:56Z
Indexed on
2012/09/11
21:37 UTC
Read the original article
Hit count: 196
objective-c
Is there any function in Objective-C to print a list of elements as unordered HTML elements. For ex - [@"a--b-c---d" htmlList: @"--"] returns @ "
- a
- b-c
- -d
the "--" is the delimiter to seperate the string of elements. I have used NSSArray to store the input string and function componentsSeperatedByString:@"--" to get the elements. How do I go ahead in adding the HTML tags li and /li between elements and ul and /ul at the end of the entire list?
Please help, Im a beginner in objective -C
© Stack Overflow or respective owner