开发者

UIScrollView or UITableView?

开发者 https://www.devze.com 2023-03-25 15:08 出处:网络
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.

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

精彩评论

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