parse.com - Swift - How to download & display comments under post? -


i have managed setup commenting system app (using parse). , far have button click, redirects me new tvc when displays comments , have option write new one.

what achieve now, i'm getting slighty confused, display latest 3 comments below image (instagram or more social networks nowadays)...i'm not sure how approach , how have them repeating or displaying 3 below post?!

i have set in storyboard (image below), playing around hoping figure out! buttons username, , label comment.

if can me or put me in correct direction (or link previous question, haven't managed find any) great! possibly little explanation of how maybe instagram it?!

best regards.

enter image description here

you can create view controller, similar logic tvc (it same controller in designed system, open door sweet comment animations), each cell in table view has instance of controller subview add. each of view controller instances added main controller child view controller.

so, main vc has array of 'tvc' instances, each configured different posts. array populated on demand, user scrolls - there's no point creating these controllers if aren't going used.

when configure post cell, pass controller instance (or it's view if prefer).

the complexity knowing if post has < 3 comments, in case height less. 'tvc' controller can tell , can have simple calculation determine height required. sure set estimated size page cells, best assume cells max height.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -