Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easiest way to recreate the iPhone SMS application's user interface?

Greetings!

as a beginner in iPhone application development using Objective-C, I was wondering what was the easiest way to recreate the iPhone SMS app's UI (the one with message bubbles and such)

I've thought of using a UITableView with a custom UITableViewCell that uses images to recreate the message bubbles. this works fine when the message thread contains only a small number of messages, but once it exceeds a certain amount, there is significant amount of time from when the view is pushed to a UINavigationController until it actually displays on screen. I believe that this is caused by computing for the height of each table cell (as well as the message bubbles).

I know that a lot of other chat clients have implemented user interfaces like such, but I can't seem to find a proper tutorial on how to do so.

links to tutorials or frameworks will be greatly appreciated. thank you.

like image 665
maignacio Avatar asked Dec 09 '25 08:12

maignacio


1 Answers

You are in the right track. I think the best option is a UITableView with custom UITableViewCell instances as cells.

Make sure you are using a cell caching technique to avoid creating one cell for each different message you are trying to show. That might be slowing you down.

Check out this (dead) tutorial. It's great for what you want, and it will explain you how to reuse your cell components.

like image 95
Pablo Santa Cruz Avatar answered Dec 11 '25 21:12

Pablo Santa Cruz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!