开发者

UIScrollView or UITableView?

I have a chat app which needs to save history (similar to the native SMS app).

Currently I'm using a UIWebView but due to performances issues, I want to switch to native controls.

The easier way would be to use a UIScrollView and just add a custom UIView for every bubble, but I'm not sure how will it work for long conversations.

开发者_开发百科

Assuming I have a long history, will UIScorllView perform well? My other option is to use a UITableView but it's an additional overhead.


I should use a UITableView with a custom UITableViewCell wich holds the bubble.

Something similar is done in this sample project taken from this tutorial

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜