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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -