iOS: Approoach: displaying fed with link thumbnails, youtube/vimeo thumbs
I am trying to replicate a feed that we have in our HTML app. Think of it
just like a facebook feed. Each feed post corresponds to a cell.
In our HTML rails app we use auto_html to look for web site links, youtube
or vimeo videos and generate a preview like this: http://cl.ly/RjBC We
also have text that can precede or follow the link.
I need to replicate this functionality in iOS in a UITableView. This means
the UITableView cell must adjust its height to match the post. I'm not
sure how to handle that, but I'll deal with that once I can figure out how
to render the post.
A co-worker suggested I embed a UIWebView in each cell and render each
post from the website. This might work, but I'm not sure if it is the best
approach. And I'm not sure if I could detect cell selection...
Another approach is to get the link and do the thumbnail process using an
iOS library. But I haven't been able to find an iOS library that will
auto-generate a thumbnail like auto-html does. Here is a link to auto-html
for a better explanation btw: https://github.com/dejan/auto_html
Any thoughts on approach? Are there any iOS libraries that do this? I
haven't found one....
thanks!
No comments:
Post a Comment