The easiest way to recreate the user interface of the iPhone SMS application?

Hello!

as a newbie in developing iPhone apps using Objective-C, I was wondering what was the easiest way to recreate the user interface of the iPhone SMS app (one that has message bubbles, etc.)

I was thinking about using a UITableView with a custom UITableViewCell that uses images to recreate message bubbles. this works great when the message flow contains only a small number of messages, but as soon as it exceeds a certain amount, there is a significant amount of time from when the view is translated into the UINavigationController until it actually appears on the screen. I believe this is caused by calculating the height of each table cell (as well as message bubbles).

I know that many other chat clients have implemented such user interfaces, but I cannot find a suitable tutorial on how to do this.

links to textbooks or frameworks would be greatly appreciated. thank.

+3
source share
2 answers

You are on the right track. I think the best option is UITableViewwith custom UITableViewCellinstances as cells.

Make sure you use the cell caching method to avoid creating one cell for each different message you are trying to display. This may slow you down.

Check out this (dead) tutorial. It is great for you, and it will explain to you how to reuse the components of your camera.

+1
source
0

Source: https://habr.com/ru/post/1775839/


All Articles