objective c - Duplicate view using for loop in iOS -
i creating application allows comments posted. need duplicate view based on how many comments there are. have viewcontroller separate view inside has comment. mini view called commentview. want duplicate view based on how many comments there are, i.e. if there 7 comments need 7 of views. unsure on how go it?
i have basic loop loops round based on number of comments:
for (int i=0; i<totalcommentsnumber; i++) { nslog(@"testing %@", [commentarray objectatindex:i]); }
i've read people have same problem suggesting use table views?
any appreciated. thanks.
Comments
Post a Comment